Warning: Permanently added '2620:52:3:1:dead:beef:cafe:c149' (ECDSA) to the list of known hosts. Running: /usr/bin/copr-rpmbuild --verbose --drop-resultdir --build-id 2912999 --chroot fedora-35-i386 --detached Version: 0.54 Task: {'appstream': True, 'background': False, 'bootstrap': 'off', 'build_id': 2912999, 'buildroot_pkgs': [], 'chroot': 'fedora-35-i386', 'enable_net': False, 'fedora_review': False, 'git_hash': '9f24a8367e020e80f748f80b6151e9e1126c03a5', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/sailer/misc/mongodb.git', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'mongodb', 'package_version': '4.0.3-4.fc33', 'project_dirname': 'misc', 'project_name': 'misc', 'project_owner': 'sailer', 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/sailer/misc/fedora-35-i386/', 'id': 'copr_base', 'name': 'Copr repository'}], 'sandbox': 'sailer/misc--sailer', 'source_json': {}, 'source_type': None, 'submitter': 'sailer', 'task_id': '2912999-fedora-35-i386', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/sailer/misc/mongodb.git /var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb --depth 500 --no-single-branch cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/sailer/misc/mongodb.git', '/var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb', '--depth', '500', '--no-single-branch'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb'... Running: git checkout 9f24a8367e020e80f748f80b6151e9e1126c03a5 cmd: ['git', 'checkout', '9f24a8367e020e80f748f80b6151e9e1126c03a5'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb rc: 0 stdout: stderr: Note: switching to '9f24a8367e020e80f748f80b6151e9e1126c03a5'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 9f24a83 automatic import of mongodb Running: copr-distgit-client sources /usr/bin/tail: /var/lib/copr-rpmbuild/main.log: file truncated cmd: ['copr-distgit-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading r4.0.3.tar.gz INFO: Calling: curl -H Pragma: -o r4.0.3.tar.gz --location --remote-time --show-error --fail https://copr-dist-git.fedorainfracloud.org/repo/pkgs/sailer/misc/mongodb/r4.0.3.tar.gz/md5/641bbc8b558b370f2204fafd69524c12/r4.0.3.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 47.8M 100 47.8M 0 0 27.6M 0 0:00:01 0:00:01 --:--:-- 27.6M INFO: Reading stdout from command: md5sum r4.0.3.tar.gz Running (timeout=18000): unbuffer mock --buildsrpm --spec /var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb/mongodb.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1635456836.472326 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 2.12 starting (python version = 3.9.7, NVR = mock-2.12-1.fc34)... Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb/mongodb.spec) Config(fedora-35-i686) Start: clean chroot Finish: clean chroot Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-35-i686-1635456836.472326/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin Mock Version: 2.12 INFO: Mock Version: 2.12 Start: dnf install No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 459 kB/s | 97 kB 00:00 local 55 MB/s | 58 MB 00:01 Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing group/module packages: bash  i686 5.1.8-2.fc35 local 1.7 M bzip2  i686 1.0.8-9.fc35 local 52 k coreutils  i686 8.32-31.fc35 local 1.2 M cpio  i686 2.13-11.fc35 local 274 k diffutils  i686 3.8-1.fc35 local 410 k fedora-release  noarch 35-33 local 11 k findutils  i686 1:4.8.0-4.fc35 local 548 k gawk  i686 5.1.0-4.fc35 local 988 k glibc-minimal-langpack  i686 2.34-7.fc35 local 138 k grep  i686 3.6-4.fc35 local 262 k gzip  i686 1.10-5.fc35 local 148 k info  i686 6.8-2.fc35 local 228 k patch  i686 2.7.6-15.fc35 local 146 k redhat-rpm-config  noarch 197-1.fc35 local 65 k rpm-build  i686 4.17.0-1.fc35 local 61 k sed  i686 4.8-8.fc35 local 299 k shadow-utils  i686 2:4.9-3.fc35 local 1.1 M tar  i686 2:1.34-2.fc35 local 897 k unzip  i686 6.0-53.fc35 local 179 k util-linux  i686 2.37.2-1.fc35 local 2.3 M which  i686 2.21-27.fc35 local 41 k xz  i686 5.2.5-7.fc35 local 219 k Installing dependencies: alternatives  i686 1.19-1.fc35 local 36 k audit-libs  i686 3.0.6-1.fc35 local 122 k basesystem  noarch 11-12.fc35 local 7.0 k binutils  i686 2.37-10.fc35 local 6.1 M binutils-gold  i686 2.37-10.fc35 local 806 k bzip2-libs  i686 1.0.8-9.fc35 local 40 k ca-certificates  noarch 2021.2.50-3.fc35 local 352 k coreutils-common  i686 8.32-31.fc35 local 2.0 M cracklib  i686 2.9.6-27.fc35 local 81 k crypto-policies  noarch 20210819-1.gitd0fdcfb.fc35 local 58 k curl  i686 7.78.0-3.fc35 local 303 k cyrus-sasl-lib  i686 2.1.27-13.fc35 local 850 k debugedit  i686 5.0-2.fc35 local 77 k dwz  i686 0.14-2.fc35 local 132 k ed  i686 1.14.2-11.fc35 local 73 k efi-srpm-macros  noarch 5-4.fc35 local 22 k elfutils  i686 0.185-5.fc35 local 531 k elfutils-debuginfod-client  i686 0.185-5.fc35 local 37 k elfutils-default-yama-scope  noarch 0.185-5.fc35 local 18 k elfutils-libelf  i686 0.185-5.fc35 local 200 k elfutils-libs  i686 0.185-5.fc35 local 297 k fedora-gpg-keys  noarch 35-1 local 113 k fedora-release-common  noarch 35-33 local 21 k fedora-release-identity-basic noarch 35-33 local 12 k fedora-repos  noarch 35-1 local 11 k file  i686 5.40-9.fc35 local 50 k file-libs  i686 5.40-9.fc35 local 627 k filesystem  i686 3.14-7.fc35 local 1.1 M fonts-srpm-macros  noarch 1:2.0.5-6.fc35 local 27 k fpc-srpm-macros  noarch 1.3-4.fc35 local 7.6 k gdb-minimal  i686 10.2-9.fc35 local 3.8 M gdbm-libs  i686 1:1.20-2.fc35 local 59 k ghc-srpm-macros  noarch 1.5.0-5.fc35 local 7.8 k glibc  i686 2.34-7.fc35 local 2.0 M glibc-common  i686 2.34-7.fc35 local 421 k glibc-gconv-extra  i686 2.34-7.fc35 local 1.6 M gmp  i686 1:6.2.0-7.fc35 local 303 k gnat-srpm-macros  noarch 4-14.fc35 local 8.2 k go-srpm-macros  noarch 3.0.11-2.fc35 local 25 k kernel-srpm-macros  noarch 1.0-6.fc35 local 8.0 k keyutils-libs  i686 1.6.1-3.fc35 local 31 k krb5-libs  i686 1.19.2-2.fc35 local 773 k libacl  i686 2.3.1-2.fc35 local 25 k libarchive  i686 3.5.2-2.fc35 local 436 k libattr  i686 2.5.1-3.fc35 local 18 k libblkid  i686 2.37.2-1.fc35 local 118 k libbrotli  i686 1.0.9-6.fc35 local 315 k libcap  i686 2.48-3.fc35 local 68 k libcap-ng  i686 0.8.2-6.fc35 local 33 k libcom_err  i686 1.46.3-1.fc35 local 26 k libcurl  i686 7.78.0-3.fc35 local 316 k libdb  i686 5.3.28-50.fc35 local 817 k libeconf  i686 0.4.0-2.fc35 local 29 k libfdisk  i686 2.37.2-1.fc35 local 170 k libffi  i686 3.1-29.fc35 local 30 k libgcc  i686 11.2.1-1.fc35 local 116 k libgcrypt  i686 1.9.4-1.fc35 local 475 k libgomp  i686 11.2.1-1.fc35 local 287 k libgpg-error  i686 1.42-3.fc35 local 216 k libidn2  i686 2.3.2-3.fc35 local 104 k libmount  i686 2.37.2-1.fc35 local 142 k libnghttp2  i686 1.45.1-1.fc35 local 75 k libnsl2  i686 1.3.0-4.fc35 local 60 k libpkgconf  i686 1.8.0-1.fc35 local 39 k libpsl  i686 0.21.1-4.fc35 local 64 k libpwquality  i686 1.4.4-6.fc35 local 105 k libselinux  i686 3.2-4.fc35 local 89 k libsemanage  i686 3.2-4.fc35 local 124 k libsepol  i686 3.2-3.fc35 local 316 k libsigsegv  i686 2.13-3.fc35 local 27 k libsmartcols  i686 2.37.2-1.fc35 local 66 k libssh  i686 0.9.6-1.fc35 local 221 k libssh-config  noarch 0.9.6-1.fc35 local 9.2 k libstdc++  i686 11.2.1-1.fc35 local 790 k libtasn1  i686 4.16.0-6.fc35 local 75 k libtirpc  i686 1.3.2-1.fc35 local 101 k libunistring  i686 0.9.10-14.fc35 local 498 k libutempter  i686 1.2.1-5.fc35 local 26 k libuuid  i686 2.37.2-1.fc35 local 29 k libverto  i686 0.3.2-2.fc35 local 21 k libxcrypt  i686 4.4.26-4.fc35 local 124 k libxml2  i686 2.9.12-6.fc35 local 778 k libzstd  i686 1.5.0-2.fc35 local 357 k lua-libs  i686 5.4.3-2.fc35 local 237 k lua-srpm-macros  noarch 1-5.fc35 local 8.4 k lz4-libs  i686 1.9.3-3.fc35 local 69 k mpfr  i686 4.1.0-8.fc35 local 355 k ncurses-base  noarch 6.2-8.20210508.fc35 local 61 k ncurses-libs  i686 6.2-8.20210508.fc35 local 345 k nim-srpm-macros  noarch 3-5.fc35 local 8.4 k ocaml-srpm-macros  noarch 6-5.fc35 local 7.8 k openblas-srpm-macros  noarch 2-10.fc35 local 7.4 k openldap  i686 2.4.59-3.fc35 local 275 k openssl-libs  i686 1:1.1.1l-2.fc35 local 1.4 M p11-kit  i686 0.23.22-4.fc35 local 334 k p11-kit-trust  i686 0.23.22-4.fc35 local 134 k pam  i686 1.5.2-5.fc35 local 569 k pcre  i686 8.45-1.fc35 local 193 k pcre2  i686 10.37-4.fc35 local 227 k pcre2-syntax  noarch 10.37-4.fc35 local 142 k perl-srpm-macros  noarch 1-42.fc35 local 8.3 k pkgconf  i686 1.8.0-1.fc35 local 42 k pkgconf-m4  noarch 1.8.0-1.fc35 local 14 k pkgconf-pkg-config  i686 1.8.0-1.fc35 local 10 k popt  i686 1.18-6.fc35 local 61 k publicsuffix-list-dafsa  noarch 20210518-2.fc35 local 58 k python-srpm-macros  noarch 3.10-8.fc35 local 24 k qt5-srpm-macros  noarch 5.15.2-3.fc35 local 8.2 k readline  i686 8.1-3.fc35 local 216 k rpm  i686 4.17.0-1.fc35 local 536 k rpm-build-libs  i686 4.17.0-1.fc35 local 101 k rpm-libs  i686 4.17.0-1.fc35 local 344 k rpmautospec-rpm-macros  noarch 0.2.5-1.fc35 local 9.9 k rust-srpm-macros  noarch 18-2.fc35 local 9.4 k setup  noarch 2.13.9.1-2.fc35 local 143 k sqlite-libs  i686 3.36.0-3.fc35 local 679 k systemd-libs  i686 249.4-2.fc35 local 644 k tzdata  noarch 2021b-1.fc35 local 430 k util-linux-core  i686 2.37.2-1.fc35 local 450 k xxhash-libs  i686 0.8.0-4.fc35 local 53 k xz-libs  i686 5.2.5-7.fc35 local 100 k zip  i686 3.0-31.fc35 local 261 k zlib  i686 1.2.11-30.fc35 local 93 k zstd  i686 1.5.0-2.fc35 local 620 k Installing Groups: build Transaction Summary ================================================================================ Install 146 Packages Total download size: 51 M Installed size: 174 M Downloading Packages: (1/146): basesystem-11-12.fc35.noarch.rpm 186 kB/s | 7.0 kB 00:00 (2/146): alternatives-1.19-1.fc35.i686.rpm 690 kB/s | 36 kB 00:00 (3/146): audit-libs-3.0.6-1.fc35.i686.rpm 1.4 MB/s | 122 kB 00:00 (4/146): bash-5.1.8-2.fc35.i686.rpm 24 MB/s | 1.7 MB 00:00 (5/146): bzip2-1.0.8-9.fc35.i686.rpm 2.5 MB/s | 52 kB 00:00 (6/146): bzip2-libs-1.0.8-9.fc35.i686.rpm 3.1 MB/s | 40 kB 00:00 (7/146): ca-certificates-2021.2.50-3.fc35.noarc 16 MB/s | 352 kB 00:00 (8/146): binutils-2.37-10.fc35.i686.rpm 49 MB/s | 6.1 MB 00:00 (9/146): binutils-gold-2.37-10.fc35.i686.rpm 8.5 MB/s | 806 kB 00:00 (10/146): coreutils-8.32-31.fc35.i686.rpm 35 MB/s | 1.2 MB 00:00 (11/146): cracklib-2.9.6-27.fc35.i686.rpm 5.6 MB/s | 81 kB 00:00 (12/146): cpio-2.13-11.fc35.i686.rpm 7.1 MB/s | 274 kB 00:00 (13/146): coreutils-common-8.32-31.fc35.i686.rp 45 MB/s | 2.0 MB 00:00 (14/146): crypto-policies-20210819-1.gitd0fdcfb 5.3 MB/s | 58 kB 00:00 (15/146): debugedit-5.0-2.fc35.i686.rpm 5.1 MB/s | 77 kB 00:00 (16/146): cyrus-sasl-lib-2.1.27-13.fc35.i686.rp 26 MB/s | 850 kB 00:00 (17/146): diffutils-3.8-1.fc35.i686.rpm 19 MB/s | 410 kB 00:00 (18/146): curl-7.78.0-3.fc35.i686.rpm 6.6 MB/s | 303 kB 00:00 (19/146): dwz-0.14-2.fc35.i686.rpm 9.0 MB/s | 132 kB 00:00 (20/146): ed-1.14.2-11.fc35.i686.rpm 5.5 MB/s | 73 kB 00:00 (21/146): elfutils-debuginfod-client-0.185-5.fc 2.8 MB/s | 37 kB 00:00 (22/146): elfutils-0.185-5.fc35.i686.rpm 24 MB/s | 531 kB 00:00 (23/146): efi-srpm-macros-5-4.fc35.noarch.rpm 658 kB/s | 22 kB 00:00 (24/146): elfutils-default-yama-scope-0.185-5.f 1.8 MB/s | 18 kB 00:00 (25/146): elfutils-libelf-0.185-5.fc35.i686.rpm 13 MB/s | 200 kB 00:00 (26/146): fedora-gpg-keys-35-1.noarch.rpm 7.9 MB/s | 113 kB 00:00 (27/146): elfutils-libs-0.185-5.fc35.i686.rpm 15 MB/s | 297 kB 00:00 (28/146): fedora-release-35-33.noarch.rpm 1.0 MB/s | 11 kB 00:00 (29/146): fedora-release-common-35-33.noarch.rp 1.9 MB/s | 21 kB 00:00 (30/146): fedora-release-identity-basic-35-33.n 1.0 MB/s | 12 kB 00:00 (31/146): fedora-repos-35-1.noarch.rpm 1.1 MB/s | 11 kB 00:00 (32/146): file-5.40-9.fc35.i686.rpm 3.6 MB/s | 50 kB 00:00 (33/146): findutils-4.8.0-4.fc35.i686.rpm 17 MB/s | 548 kB 00:00 (34/146): file-libs-5.40-9.fc35.i686.rpm 14 MB/s | 627 kB 00:00 (35/146): filesystem-3.14-7.fc35.i686.rpm 22 MB/s | 1.1 MB 00:00 (36/146): fonts-srpm-macros-2.0.5-6.fc35.noarch 2.3 MB/s | 27 kB 00:00 (37/146): fpc-srpm-macros-1.3-4.fc35.noarch.rpm 472 kB/s | 7.6 kB 00:00 (38/146): gawk-5.1.0-4.fc35.i686.rpm 34 MB/s | 988 kB 00:00 (39/146): gdbm-libs-1.20-2.fc35.i686.rpm 3.2 MB/s | 59 kB 00:00 (40/146): ghc-srpm-macros-1.5.0-5.fc35.noarch.r 739 kB/s | 7.8 kB 00:00 (41/146): glibc-common-2.34-7.fc35.i686.rpm 15 MB/s | 421 kB 00:00 (42/146): gdb-minimal-10.2-9.fc35.i686.rpm 50 MB/s | 3.8 MB 00:00 (43/146): glibc-minimal-langpack-2.34-7.fc35.i6 9.4 MB/s | 138 kB 00:00 (44/146): glibc-gconv-extra-2.34-7.fc35.i686.rp 40 MB/s | 1.6 MB 00:00 (45/146): gmp-6.2.0-7.fc35.i686.rpm 19 MB/s | 303 kB 00:00 (46/146): gnat-srpm-macros-4-14.fc35.noarch.rpm 888 kB/s | 8.2 kB 00:00 (47/146): go-srpm-macros-3.0.11-2.fc35.noarch.r 2.1 MB/s | 25 kB 00:00 (48/146): grep-3.6-4.fc35.i686.rpm 14 MB/s | 262 kB 00:00 (49/146): gzip-1.10-5.fc35.i686.rpm 11 MB/s | 148 kB 00:00 (50/146): kernel-srpm-macros-1.0-6.fc35.noarch. 830 kB/s | 8.0 kB 00:00 (51/146): glibc-2.34-7.fc35.i686.rpm 16 MB/s | 2.0 MB 00:00 (52/146): info-6.8-2.fc35.i686.rpm 11 MB/s | 228 kB 00:00 (53/146): keyutils-libs-1.6.1-3.fc35.i686.rpm 2.1 MB/s | 31 kB 00:00 (54/146): libacl-2.3.1-2.fc35.i686.rpm 1.6 MB/s | 25 kB 00:00 (55/146): libattr-2.5.1-3.fc35.i686.rpm 1.2 MB/s | 18 kB 00:00 (56/146): libarchive-3.5.2-2.fc35.i686.rpm 15 MB/s | 436 kB 00:00 (57/146): libblkid-2.37.2-1.fc35.i686.rpm 6.6 MB/s | 118 kB 00:00 (58/146): krb5-libs-1.19.2-2.fc35.i686.rpm 13 MB/s | 773 kB 00:00 (59/146): libbrotli-1.0.9-6.fc35.i686.rpm 14 MB/s | 315 kB 00:00 (60/146): libcap-2.48-3.fc35.i686.rpm 3.7 MB/s | 68 kB 00:00 (61/146): libcom_err-1.46.3-1.fc35.i686.rpm 1.5 MB/s | 26 kB 00:00 (62/146): libcap-ng-0.8.2-6.fc35.i686.rpm 1.6 MB/s | 33 kB 00:00 (63/146): libcurl-7.78.0-3.fc35.i686.rpm 19 MB/s | 316 kB 00:00 (64/146): libeconf-0.4.0-2.fc35.i686.rpm 1.7 MB/s | 29 kB 00:00 (65/146): libfdisk-2.37.2-1.fc35.i686.rpm 11 MB/s | 170 kB 00:00 (66/146): libffi-3.1-29.fc35.i686.rpm 1.7 MB/s | 30 kB 00:00 (67/146): libdb-5.3.28-50.fc35.i686.rpm 16 MB/s | 817 kB 00:00 (68/146): libgcc-11.2.1-1.fc35.i686.rpm 4.1 MB/s | 116 kB 00:00 (69/146): libgomp-11.2.1-1.fc35.i686.rpm 13 MB/s | 287 kB 00:00 (70/146): libgpg-error-1.42-3.fc35.i686.rpm 11 MB/s | 216 kB 00:00 (71/146): libgcrypt-1.9.4-1.fc35.i686.rpm 11 MB/s | 475 kB 00:00 (72/146): libmount-2.37.2-1.fc35.i686.rpm 9.6 MB/s | 142 kB 00:00 (73/146): libidn2-2.3.2-3.fc35.i686.rpm 5.5 MB/s | 104 kB 00:00 (74/146): libnghttp2-1.45.1-1.fc35.i686.rpm 3.3 MB/s | 75 kB 00:00 (75/146): libnsl2-1.3.0-4.fc35.i686.rpm 3.7 MB/s | 60 kB 00:00 (76/146): libpkgconf-1.8.0-1.fc35.i686.rpm 2.1 MB/s | 39 kB 00:00 (77/146): libpwquality-1.4.4-6.fc35.i686.rpm 5.0 MB/s | 105 kB 00:00 (78/146): libpsl-0.21.1-4.fc35.i686.rpm 2.7 MB/s | 64 kB 00:00 (79/146): libselinux-3.2-4.fc35.i686.rpm 3.8 MB/s | 89 kB 00:00 (80/146): libsemanage-3.2-4.fc35.i686.rpm 6.9 MB/s | 124 kB 00:00 (81/146): libsigsegv-2.13-3.fc35.i686.rpm 1.4 MB/s | 27 kB 00:00 (82/146): libsmartcols-2.37.2-1.fc35.i686.rpm 4.8 MB/s | 66 kB 00:00 (83/146): libsepol-3.2-3.fc35.i686.rpm 8.4 MB/s | 316 kB 00:00 (84/146): libssh-config-0.9.6-1.fc35.noarch.rpm 793 kB/s | 9.2 kB 00:00 (85/146): libtasn1-4.16.0-6.fc35.i686.rpm 6.0 MB/s | 75 kB 00:00 (86/146): libssh-0.9.6-1.fc35.i686.rpm 6.4 MB/s | 221 kB 00:00 (87/146): libunistring-0.9.10-14.fc35.i686.rpm 15 MB/s | 498 kB 00:00 (88/146): libutempter-1.2.1-5.fc35.i686.rpm 1.2 MB/s | 26 kB 00:00 (89/146): libstdc++-11.2.1-1.fc35.i686.rpm 8.8 MB/s | 790 kB 00:00 (90/146): libtirpc-1.3.2-1.fc35.i686.rpm 1.3 MB/s | 101 kB 00:00 (91/146): libuuid-2.37.2-1.fc35.i686.rpm 1.5 MB/s | 29 kB 00:00 (92/146): libverto-0.3.2-2.fc35.i686.rpm 1.4 MB/s | 21 kB 00:00 (93/146): libxcrypt-4.4.26-4.fc35.i686.rpm 7.8 MB/s | 124 kB 00:00 (94/146): lua-libs-5.4.3-2.fc35.i686.rpm 11 MB/s | 237 kB 00:00 (95/146): libxml2-2.9.12-6.fc35.i686.rpm 20 MB/s | 778 kB 00:00 (96/146): libzstd-1.5.0-2.fc35.i686.rpm 11 MB/s | 357 kB 00:00 (97/146): lua-srpm-macros-1-5.fc35.noarch.rpm 777 kB/s | 8.4 kB 00:00 (98/146): lz4-libs-1.9.3-3.fc35.i686.rpm 5.1 MB/s | 69 kB 00:00 (99/146): ncurses-base-6.2-8.20210508.fc35.noar 5.5 MB/s | 61 kB 00:00 (100/146): nim-srpm-macros-3-5.fc35.noarch.rpm 667 kB/s | 8.4 kB 00:00 (101/146): mpfr-4.1.0-8.fc35.i686.rpm 9.0 MB/s | 355 kB 00:00 (102/146): ncurses-libs-6.2-8.20210508.fc35.i68 12 MB/s | 345 kB 00:00 (103/146): ocaml-srpm-macros-6-5.fc35.noarch.rp 526 kB/s | 7.8 kB 00:00 (104/146): openldap-2.4.59-3.fc35.i686.rpm 14 MB/s | 275 kB 00:00 (105/146): openblas-srpm-macros-2-10.fc35.noarc 344 kB/s | 7.4 kB 00:00 (106/146): p11-kit-0.23.22-4.fc35.i686.rpm 18 MB/s | 334 kB 00:00 (107/146): p11-kit-trust-0.23.22-4.fc35.i686.rp 6.8 MB/s | 134 kB 00:00 (108/146): openssl-libs-1.1.1l-2.fc35.i686.rpm 23 MB/s | 1.4 MB 00:00 (109/146): patch-2.7.6-15.fc35.i686.rpm 4.8 MB/s | 146 kB 00:00 (110/146): pam-1.5.2-5.fc35.i686.rpm 17 MB/s | 569 kB 00:00 (111/146): pcre2-syntax-10.37-4.fc35.noarch.rpm 12 MB/s | 142 kB 00:00 (112/146): pcre-8.45-1.fc35.i686.rpm 7.9 MB/s | 193 kB 00:00 (113/146): pcre2-10.37-4.fc35.i686.rpm 11 MB/s | 227 kB 00:00 (114/146): perl-srpm-macros-1-42.fc35.noarch.rp 861 kB/s | 8.3 kB 00:00 (115/146): pkgconf-pkg-config-1.8.0-1.fc35.i686 864 kB/s | 10 kB 00:00 (116/146): pkgconf-m4-1.8.0-1.fc35.noarch.rpm 661 kB/s | 14 kB 00:00 (117/146): pkgconf-1.8.0-1.fc35.i686.rpm 1.6 MB/s | 42 kB 00:00 (118/146): popt-1.18-6.fc35.i686.rpm 3.9 MB/s | 61 kB 00:00 (119/146): publicsuffix-list-dafsa-20210518-2.f 3.6 MB/s | 58 kB 00:00 (120/146): python-srpm-macros-3.10-8.fc35.noarc 1.7 MB/s | 24 kB 00:00 (121/146): qt5-srpm-macros-5.15.2-3.fc35.noarch 440 kB/s | 8.2 kB 00:00 (122/146): redhat-rpm-config-197-1.fc35.noarch. 2.7 MB/s | 65 kB 00:00 (123/146): readline-8.1-3.fc35.i686.rpm 6.0 MB/s | 216 kB 00:00 (124/146): rpm-build-4.17.0-1.fc35.i686.rpm 3.0 MB/s | 61 kB 00:00 (125/146): rpm-4.17.0-1.fc35.i686.rpm 14 MB/s | 536 kB 00:00 (126/146): rpm-build-libs-4.17.0-1.fc35.i686.rp 4.6 MB/s | 101 kB 00:00 (127/146): rpmautospec-rpm-macros-0.2.5-1.fc35. 924 kB/s | 9.9 kB 00:00 (128/146): rpm-libs-4.17.0-1.fc35.i686.rpm 16 MB/s | 344 kB 00:00 (129/146): rust-srpm-macros-18-2.fc35.noarch.rp 591 kB/s | 9.4 kB 00:00 (130/146): setup-2.13.9.1-2.fc35.noarch.rpm 7.0 MB/s | 143 kB 00:00 (131/146): sed-4.8-8.fc35.i686.rpm 8.5 MB/s | 299 kB 00:00 (132/146): systemd-libs-249.4-2.fc35.i686.rpm 22 MB/s | 644 kB 00:00 (133/146): sqlite-libs-3.36.0-3.fc35.i686.rpm 15 MB/s | 679 kB 00:00 (134/146): shadow-utils-4.9-3.fc35.i686.rpm 16 MB/s | 1.1 MB 00:00 (135/146): tzdata-2021b-1.fc35.noarch.rpm 19 MB/s | 430 kB 00:00 (136/146): tar-1.34-2.fc35.i686.rpm 30 MB/s | 897 kB 00:00 (137/146): unzip-6.0-53.fc35.i686.rpm 10 MB/s | 179 kB 00:00 (138/146): util-linux-core-2.37.2-1.fc35.i686.r 21 MB/s | 450 kB 00:00 (139/146): which-2.21-27.fc35.i686.rpm 2.3 MB/s | 41 kB 00:00 (140/146): xxhash-libs-0.8.0-4.fc35.i686.rpm 2.3 MB/s | 53 kB 00:00 (141/146): util-linux-2.37.2-1.fc35.i686.rpm 40 MB/s | 2.3 MB 00:00 (142/146): xz-libs-5.2.5-7.fc35.i686.rpm 7.8 MB/s | 100 kB 00:00 (143/146): xz-5.2.5-7.fc35.i686.rpm 6.7 MB/s | 219 kB 00:00 (144/146): zlib-1.2.11-30.fc35.i686.rpm 5.9 MB/s | 93 kB 00:00 (145/146): zip-3.0-31.fc35.i686.rpm 10 MB/s | 261 kB 00:00 (146/146): zstd-1.5.0-2.fc35.i686.rpm 14 MB/s | 620 kB 00:00 -------------------------------------------------------------------------------- Total 38 MB/s | 51 MB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: filesystem-3.14-7.fc35.i686 1/1 Preparing : 1/1 Installing : crypto-policies-20210819-1.gitd0fdcfb.fc35.noarc 1/146 Running scriptlet: crypto-policies-20210819-1.gitd0fdcfb.fc35.noarc 1/146 Installing : fedora-release-identity-basic-35-33.noarch 2/146 Installing : tzdata-2021b-1.fc35.noarch 3/146 Installing : rust-srpm-macros-18-2.fc35.noarch 4/146 Installing : qt5-srpm-macros-5.15.2-3.fc35.noarch 5/146 Installing : publicsuffix-list-dafsa-20210518-2.fc35.noarch 6/146 Installing : pkgconf-m4-1.8.0-1.fc35.noarch 7/146 Installing : perl-srpm-macros-1-42.fc35.noarch 8/146 Installing : pcre2-syntax-10.37-4.fc35.noarch 9/146 Installing : openblas-srpm-macros-2-10.fc35.noarch 10/146 Installing : ocaml-srpm-macros-6-5.fc35.noarch 11/146 Installing : nim-srpm-macros-3-5.fc35.noarch 12/146 Installing : ncurses-base-6.2-8.20210508.fc35.noarch 13/146 Installing : libssh-config-0.9.6-1.fc35.noarch 14/146 Installing : kernel-srpm-macros-1.0-6.fc35.noarch 15/146 Installing : gnat-srpm-macros-4-14.fc35.noarch 16/146 Installing : ghc-srpm-macros-1.5.0-5.fc35.noarch 17/146 Installing : fpc-srpm-macros-1.3-4.fc35.noarch 18/146 Installing : fedora-gpg-keys-35-1.noarch 19/146 Installing : fedora-release-35-33.noarch 20/146 Installing : fedora-repos-35-1.noarch 21/146 Installing : fedora-release-common-35-33.noarch 22/146 Installing : setup-2.13.9.1-2.fc35.noarch 23/146 warning: /etc/hosts created as /etc/hosts.rpmnew Running scriptlet: setup-2.13.9.1-2.fc35.noarch 23/146 Installing : filesystem-3.14-7.fc35.i686 24/146 Installing : basesystem-11-12.fc35.noarch 25/146 Installing : coreutils-common-8.32-31.fc35.i686 26/146 Installing : libgcc-11.2.1-1.fc35.i686 27/146 Running scriptlet: libgcc-11.2.1-1.fc35.i686 27/146 Installing : glibc-gconv-extra-2.34-7.fc35.i686 28/146 Running scriptlet: glibc-gconv-extra-2.34-7.fc35.i686 28/146 Installing : glibc-minimal-langpack-2.34-7.fc35.i686 29/146 Installing : glibc-common-2.34-7.fc35.i686 30/146 Running scriptlet: glibc-2.34-7.fc35.i686 31/146 Installing : glibc-2.34-7.fc35.i686 31/146 Running scriptlet: glibc-2.34-7.fc35.i686 31/146 Installing : ncurses-libs-6.2-8.20210508.fc35.i686 32/146 Installing : bash-5.1.8-2.fc35.i686 33/146 Running scriptlet: bash-5.1.8-2.fc35.i686 33/146 Installing : zlib-1.2.11-30.fc35.i686 34/146 Installing : bzip2-libs-1.0.8-9.fc35.i686 35/146 Installing : xz-libs-5.2.5-7.fc35.i686 36/146 Installing : elfutils-libelf-0.185-5.fc35.i686 37/146 Installing : libstdc++-11.2.1-1.fc35.i686 38/146 Installing : libuuid-2.37.2-1.fc35.i686 39/146 Installing : libzstd-1.5.0-2.fc35.i686 40/146 Installing : libattr-2.5.1-3.fc35.i686 41/146 Installing : libacl-2.3.1-2.fc35.i686 42/146 Installing : libcap-2.48-3.fc35.i686 43/146 Installing : libcom_err-1.46.3-1.fc35.i686 44/146 Installing : libxcrypt-4.4.26-4.fc35.i686 45/146 Installing : popt-1.18-6.fc35.i686 46/146 Installing : readline-8.1-3.fc35.i686 47/146 Installing : gmp-1:6.2.0-7.fc35.i686 48/146 Installing : mpfr-4.1.0-8.fc35.i686 49/146 Installing : dwz-0.14-2.fc35.i686 50/146 Installing : unzip-6.0-53.fc35.i686 51/146 Installing : file-libs-5.40-9.fc35.i686 52/146 Installing : file-5.40-9.fc35.i686 53/146 Installing : sqlite-libs-3.36.0-3.fc35.i686 54/146 Installing : alternatives-1.19-1.fc35.i686 55/146 Installing : libcap-ng-0.8.2-6.fc35.i686 56/146 Installing : audit-libs-3.0.6-1.fc35.i686 57/146 Installing : libsepol-3.2-3.fc35.i686 58/146 Installing : libsigsegv-2.13-3.fc35.i686 59/146 Installing : gawk-5.1.0-4.fc35.i686 60/146 Installing : libsmartcols-2.37.2-1.fc35.i686 61/146 Installing : libunistring-0.9.10-14.fc35.i686 62/146 Installing : libidn2-2.3.2-3.fc35.i686 63/146 Installing : lua-libs-5.4.3-2.fc35.i686 64/146 Installing : lz4-libs-1.9.3-3.fc35.i686 65/146 Installing : elfutils-default-yama-scope-0.185-5.fc35.noarch 66/146 Running scriptlet: elfutils-default-yama-scope-0.185-5.fc35.noarch 66/146 Installing : libpsl-0.21.1-4.fc35.i686 67/146 Installing : zip-3.0-31.fc35.i686 68/146 Installing : zstd-1.5.0-2.fc35.i686 69/146 Installing : libxml2-2.9.12-6.fc35.i686 70/146 Installing : bzip2-1.0.8-9.fc35.i686 71/146 Installing : info-6.8-2.fc35.i686 72/146 Installing : ed-1.14.2-11.fc35.i686 73/146 Installing : cpio-2.13-11.fc35.i686 74/146 Installing : diffutils-3.8-1.fc35.i686 75/146 Installing : gdbm-libs-1:1.20-2.fc35.i686 76/146 Installing : keyutils-libs-1.6.1-3.fc35.i686 77/146 Installing : libbrotli-1.0.9-6.fc35.i686 78/146 Installing : libdb-5.3.28-50.fc35.i686 79/146 Installing : libeconf-0.4.0-2.fc35.i686 80/146 Installing : libffi-3.1-29.fc35.i686 81/146 Installing : p11-kit-0.23.22-4.fc35.i686 82/146 Installing : libgomp-11.2.1-1.fc35.i686 83/146 Installing : libgpg-error-1.42-3.fc35.i686 84/146 Installing : libgcrypt-1.9.4-1.fc35.i686 85/146 Installing : libnghttp2-1.45.1-1.fc35.i686 86/146 Installing : libpkgconf-1.8.0-1.fc35.i686 87/146 Installing : pkgconf-1.8.0-1.fc35.i686 88/146 Installing : pkgconf-pkg-config-1.8.0-1.fc35.i686 89/146 Installing : libtasn1-4.16.0-6.fc35.i686 90/146 Installing : p11-kit-trust-0.23.22-4.fc35.i686 91/146 Running scriptlet: p11-kit-trust-0.23.22-4.fc35.i686 91/146 Installing : libverto-0.3.2-2.fc35.i686 92/146 Installing : pcre-8.45-1.fc35.i686 93/146 Installing : grep-3.6-4.fc35.i686 94/146 Installing : xz-5.2.5-7.fc35.i686 95/146 Installing : pcre2-10.37-4.fc35.i686 96/146 Installing : libselinux-3.2-4.fc35.i686 97/146 Installing : sed-4.8-8.fc35.i686 98/146 Installing : findutils-1:4.8.0-4.fc35.i686 99/146 Installing : openssl-libs-1:1.1.1l-2.fc35.i686 100/146 Installing : coreutils-8.32-31.fc35.i686 101/146 Running scriptlet: ca-certificates-2021.2.50-3.fc35.noarch 102/146 Installing : ca-certificates-2021.2.50-3.fc35.noarch 102/146 Running scriptlet: ca-certificates-2021.2.50-3.fc35.noarch 102/146 Installing : krb5-libs-1.19.2-2.fc35.i686 103/146 Installing : libblkid-2.37.2-1.fc35.i686 104/146 Running scriptlet: libblkid-2.37.2-1.fc35.i686 104/146 Installing : libmount-2.37.2-1.fc35.i686 105/146 Installing : libtirpc-1.3.2-1.fc35.i686 106/146 Installing : gzip-1.10-5.fc35.i686 107/146 Installing : systemd-libs-249.4-2.fc35.i686 108/146 Running scriptlet: systemd-libs-249.4-2.fc35.i686 108/146 Installing : util-linux-core-2.37.2-1.fc35.i686 109/146 Running scriptlet: util-linux-core-2.37.2-1.fc35.i686 109/146 Installing : cracklib-2.9.6-27.fc35.i686 110/146 Installing : libnsl2-1.3.0-4.fc35.i686 111/146 Installing : libpwquality-1.4.4-6.fc35.i686 112/146 Installing : pam-1.5.2-5.fc35.i686 113/146 Installing : libfdisk-2.37.2-1.fc35.i686 114/146 Installing : cyrus-sasl-lib-2.1.27-13.fc35.i686 115/146 Installing : openldap-2.4.59-3.fc35.i686 116/146 Installing : libssh-0.9.6-1.fc35.i686 117/146 Installing : libcurl-7.78.0-3.fc35.i686 118/146 Installing : elfutils-libs-0.185-5.fc35.i686 119/146 Installing : elfutils-debuginfod-client-0.185-5.fc35.i686 120/146 Installing : binutils-gold-2.37-10.fc35.i686 121/146 Installing : binutils-2.37-10.fc35.i686 122/146 Running scriptlet: binutils-2.37-10.fc35.i686 122/146 Installing : elfutils-0.185-5.fc35.i686 123/146 Installing : curl-7.78.0-3.fc35.i686 124/146 Installing : libarchive-3.5.2-2.fc35.i686 125/146 Installing : rpm-4.17.0-1.fc35.i686 126/146 Installing : rpm-libs-4.17.0-1.fc35.i686 127/146 Installing : efi-srpm-macros-5-4.fc35.noarch 128/146 Installing : lua-srpm-macros-1-5.fc35.noarch 129/146 Installing : rpmautospec-rpm-macros-0.2.5-1.fc35.noarch 130/146 Installing : fonts-srpm-macros-1:2.0.5-6.fc35.noarch 131/146 Installing : go-srpm-macros-3.0.11-2.fc35.noarch 132/146 Installing : python-srpm-macros-3.10-8.fc35.noarch 133/146 Installing : redhat-rpm-config-197-1.fc35.noarch 134/146 Installing : rpm-build-libs-4.17.0-1.fc35.i686 135/146 Installing : libsemanage-3.2-4.fc35.i686 136/146 Installing : shadow-utils-2:4.9-3.fc35.i686 137/146 Running scriptlet: libutempter-1.2.1-5.fc35.i686 138/146 Installing : libutempter-1.2.1-5.fc35.i686 138/146 Installing : patch-2.7.6-15.fc35.i686 139/146 Installing : tar-2:1.34-2.fc35.i686 140/146 Installing : xxhash-libs-0.8.0-4.fc35.i686 141/146 Installing : gdb-minimal-10.2-9.fc35.i686 142/146 Installing : debugedit-5.0-2.fc35.i686 143/146 Installing : rpm-build-4.17.0-1.fc35.i686 144/146 Installing : util-linux-2.37.2-1.fc35.i686 145/146 Running scriptlet: util-linux-2.37.2-1.fc35.i686 145/146 Installing : which-2.21-27.fc35.i686 146/146 Running scriptlet: filesystem-3.14-7.fc35.i686 146/146 Running scriptlet: ca-certificates-2021.2.50-3.fc35.noarch 146/146 Running scriptlet: pam-1.5.2-5.fc35.i686 146/146 Running scriptlet: rpm-4.17.0-1.fc35.i686 146/146 Running scriptlet: which-2.21-27.fc35.i686 146/146 Verifying : alternatives-1.19-1.fc35.i686 1/146 Verifying : audit-libs-3.0.6-1.fc35.i686 2/146 Verifying : basesystem-11-12.fc35.noarch 3/146 Verifying : bash-5.1.8-2.fc35.i686 4/146 Verifying : binutils-2.37-10.fc35.i686 5/146 Verifying : binutils-gold-2.37-10.fc35.i686 6/146 Verifying : bzip2-1.0.8-9.fc35.i686 7/146 Verifying : bzip2-libs-1.0.8-9.fc35.i686 8/146 Verifying : ca-certificates-2021.2.50-3.fc35.noarch 9/146 Verifying : coreutils-8.32-31.fc35.i686 10/146 Verifying : coreutils-common-8.32-31.fc35.i686 11/146 Verifying : cpio-2.13-11.fc35.i686 12/146 Verifying : cracklib-2.9.6-27.fc35.i686 13/146 Verifying : crypto-policies-20210819-1.gitd0fdcfb.fc35.noarc 14/146 Verifying : curl-7.78.0-3.fc35.i686 15/146 Verifying : cyrus-sasl-lib-2.1.27-13.fc35.i686 16/146 Verifying : debugedit-5.0-2.fc35.i686 17/146 Verifying : diffutils-3.8-1.fc35.i686 18/146 Verifying : dwz-0.14-2.fc35.i686 19/146 Verifying : ed-1.14.2-11.fc35.i686 20/146 Verifying : efi-srpm-macros-5-4.fc35.noarch 21/146 Verifying : elfutils-0.185-5.fc35.i686 22/146 Verifying : elfutils-debuginfod-client-0.185-5.fc35.i686 23/146 Verifying : elfutils-default-yama-scope-0.185-5.fc35.noarch 24/146 Verifying : elfutils-libelf-0.185-5.fc35.i686 25/146 Verifying : elfutils-libs-0.185-5.fc35.i686 26/146 Verifying : fedora-gpg-keys-35-1.noarch 27/146 Verifying : fedora-release-35-33.noarch 28/146 Verifying : fedora-release-common-35-33.noarch 29/146 Verifying : fedora-release-identity-basic-35-33.noarch 30/146 Verifying : fedora-repos-35-1.noarch 31/146 Verifying : file-5.40-9.fc35.i686 32/146 Verifying : file-libs-5.40-9.fc35.i686 33/146 Verifying : filesystem-3.14-7.fc35.i686 34/146 Verifying : findutils-1:4.8.0-4.fc35.i686 35/146 Verifying : fonts-srpm-macros-1:2.0.5-6.fc35.noarch 36/146 Verifying : fpc-srpm-macros-1.3-4.fc35.noarch 37/146 Verifying : gawk-5.1.0-4.fc35.i686 38/146 Verifying : gdb-minimal-10.2-9.fc35.i686 39/146 Verifying : gdbm-libs-1:1.20-2.fc35.i686 40/146 Verifying : ghc-srpm-macros-1.5.0-5.fc35.noarch 41/146 Verifying : glibc-2.34-7.fc35.i686 42/146 Verifying : glibc-common-2.34-7.fc35.i686 43/146 Verifying : glibc-gconv-extra-2.34-7.fc35.i686 44/146 Verifying : glibc-minimal-langpack-2.34-7.fc35.i686 45/146 Verifying : gmp-1:6.2.0-7.fc35.i686 46/146 Verifying : gnat-srpm-macros-4-14.fc35.noarch 47/146 Verifying : go-srpm-macros-3.0.11-2.fc35.noarch 48/146 Verifying : grep-3.6-4.fc35.i686 49/146 Verifying : gzip-1.10-5.fc35.i686 50/146 Verifying : info-6.8-2.fc35.i686 51/146 Verifying : kernel-srpm-macros-1.0-6.fc35.noarch 52/146 Verifying : keyutils-libs-1.6.1-3.fc35.i686 53/146 Verifying : krb5-libs-1.19.2-2.fc35.i686 54/146 Verifying : libacl-2.3.1-2.fc35.i686 55/146 Verifying : libarchive-3.5.2-2.fc35.i686 56/146 Verifying : libattr-2.5.1-3.fc35.i686 57/146 Verifying : libblkid-2.37.2-1.fc35.i686 58/146 Verifying : libbrotli-1.0.9-6.fc35.i686 59/146 Verifying : libcap-2.48-3.fc35.i686 60/146 Verifying : libcap-ng-0.8.2-6.fc35.i686 61/146 Verifying : libcom_err-1.46.3-1.fc35.i686 62/146 Verifying : libcurl-7.78.0-3.fc35.i686 63/146 Verifying : libdb-5.3.28-50.fc35.i686 64/146 Verifying : libeconf-0.4.0-2.fc35.i686 65/146 Verifying : libfdisk-2.37.2-1.fc35.i686 66/146 Verifying : libffi-3.1-29.fc35.i686 67/146 Verifying : libgcc-11.2.1-1.fc35.i686 68/146 Verifying : libgcrypt-1.9.4-1.fc35.i686 69/146 Verifying : libgomp-11.2.1-1.fc35.i686 70/146 Verifying : libgpg-error-1.42-3.fc35.i686 71/146 Verifying : libidn2-2.3.2-3.fc35.i686 72/146 Verifying : libmount-2.37.2-1.fc35.i686 73/146 Verifying : libnghttp2-1.45.1-1.fc35.i686 74/146 Verifying : libnsl2-1.3.0-4.fc35.i686 75/146 Verifying : libpkgconf-1.8.0-1.fc35.i686 76/146 Verifying : libpsl-0.21.1-4.fc35.i686 77/146 Verifying : libpwquality-1.4.4-6.fc35.i686 78/146 Verifying : libselinux-3.2-4.fc35.i686 79/146 Verifying : libsemanage-3.2-4.fc35.i686 80/146 Verifying : libsepol-3.2-3.fc35.i686 81/146 Verifying : libsigsegv-2.13-3.fc35.i686 82/146 Verifying : libsmartcols-2.37.2-1.fc35.i686 83/146 Verifying : libssh-0.9.6-1.fc35.i686 84/146 Verifying : libssh-config-0.9.6-1.fc35.noarch 85/146 Verifying : libstdc++-11.2.1-1.fc35.i686 86/146 Verifying : libtasn1-4.16.0-6.fc35.i686 87/146 Verifying : libtirpc-1.3.2-1.fc35.i686 88/146 Verifying : libunistring-0.9.10-14.fc35.i686 89/146 Verifying : libutempter-1.2.1-5.fc35.i686 90/146 Verifying : libuuid-2.37.2-1.fc35.i686 91/146 Verifying : libverto-0.3.2-2.fc35.i686 92/146 Verifying : libxcrypt-4.4.26-4.fc35.i686 93/146 Verifying : libxml2-2.9.12-6.fc35.i686 94/146 Verifying : libzstd-1.5.0-2.fc35.i686 95/146 Verifying : lua-libs-5.4.3-2.fc35.i686 96/146 Verifying : lua-srpm-macros-1-5.fc35.noarch 97/146 Verifying : lz4-libs-1.9.3-3.fc35.i686 98/146 Verifying : mpfr-4.1.0-8.fc35.i686 99/146 Verifying : ncurses-base-6.2-8.20210508.fc35.noarch 100/146 Verifying : ncurses-libs-6.2-8.20210508.fc35.i686 101/146 Verifying : nim-srpm-macros-3-5.fc35.noarch 102/146 Verifying : ocaml-srpm-macros-6-5.fc35.noarch 103/146 Verifying : openblas-srpm-macros-2-10.fc35.noarch 104/146 Verifying : openldap-2.4.59-3.fc35.i686 105/146 Verifying : openssl-libs-1:1.1.1l-2.fc35.i686 106/146 Verifying : p11-kit-0.23.22-4.fc35.i686 107/146 Verifying : p11-kit-trust-0.23.22-4.fc35.i686 108/146 Verifying : pam-1.5.2-5.fc35.i686 109/146 Verifying : patch-2.7.6-15.fc35.i686 110/146 Verifying : pcre-8.45-1.fc35.i686 111/146 Verifying : pcre2-10.37-4.fc35.i686 112/146 Verifying : pcre2-syntax-10.37-4.fc35.noarch 113/146 Verifying : perl-srpm-macros-1-42.fc35.noarch 114/146 Verifying : pkgconf-1.8.0-1.fc35.i686 115/146 Verifying : pkgconf-m4-1.8.0-1.fc35.noarch 116/146 Verifying : pkgconf-pkg-config-1.8.0-1.fc35.i686 117/146 Verifying : popt-1.18-6.fc35.i686 118/146 Verifying : publicsuffix-list-dafsa-20210518-2.fc35.noarch 119/146 Verifying : python-srpm-macros-3.10-8.fc35.noarch 120/146 Verifying : qt5-srpm-macros-5.15.2-3.fc35.noarch 121/146 Verifying : readline-8.1-3.fc35.i686 122/146 Verifying : redhat-rpm-config-197-1.fc35.noarch 123/146 Verifying : rpm-4.17.0-1.fc35.i686 124/146 Verifying : rpm-build-4.17.0-1.fc35.i686 125/146 Verifying : rpm-build-libs-4.17.0-1.fc35.i686 126/146 Verifying : rpm-libs-4.17.0-1.fc35.i686 127/146 Verifying : rpmautospec-rpm-macros-0.2.5-1.fc35.noarch 128/146 Verifying : rust-srpm-macros-18-2.fc35.noarch 129/146 Verifying : sed-4.8-8.fc35.i686 130/146 Verifying : setup-2.13.9.1-2.fc35.noarch 131/146 Verifying : shadow-utils-2:4.9-3.fc35.i686 132/146 Verifying : sqlite-libs-3.36.0-3.fc35.i686 133/146 Verifying : systemd-libs-249.4-2.fc35.i686 134/146 Verifying : tar-2:1.34-2.fc35.i686 135/146 Verifying : tzdata-2021b-1.fc35.noarch 136/146 Verifying : unzip-6.0-53.fc35.i686 137/146 Verifying : util-linux-2.37.2-1.fc35.i686 138/146 Verifying : util-linux-core-2.37.2-1.fc35.i686 139/146 Verifying : which-2.21-27.fc35.i686 140/146 Verifying : xxhash-libs-0.8.0-4.fc35.i686 141/146 Verifying : xz-5.2.5-7.fc35.i686 142/146 Verifying : xz-libs-5.2.5-7.fc35.i686 143/146 Verifying : zip-3.0-31.fc35.i686 144/146 Verifying : zlib-1.2.11-30.fc35.i686 145/146 Verifying : zstd-1.5.0-2.fc35.i686 146/146 Installed: alternatives-1.19-1.fc35.i686 audit-libs-3.0.6-1.fc35.i686 basesystem-11-12.fc35.noarch bash-5.1.8-2.fc35.i686 binutils-2.37-10.fc35.i686 binutils-gold-2.37-10.fc35.i686 bzip2-1.0.8-9.fc35.i686 bzip2-libs-1.0.8-9.fc35.i686 ca-certificates-2021.2.50-3.fc35.noarch coreutils-8.32-31.fc35.i686 coreutils-common-8.32-31.fc35.i686 cpio-2.13-11.fc35.i686 cracklib-2.9.6-27.fc35.i686 crypto-policies-20210819-1.gitd0fdcfb.fc35.noarch curl-7.78.0-3.fc35.i686 cyrus-sasl-lib-2.1.27-13.fc35.i686 debugedit-5.0-2.fc35.i686 diffutils-3.8-1.fc35.i686 dwz-0.14-2.fc35.i686 ed-1.14.2-11.fc35.i686 efi-srpm-macros-5-4.fc35.noarch elfutils-0.185-5.fc35.i686 elfutils-debuginfod-client-0.185-5.fc35.i686 elfutils-default-yama-scope-0.185-5.fc35.noarch elfutils-libelf-0.185-5.fc35.i686 elfutils-libs-0.185-5.fc35.i686 fedora-gpg-keys-35-1.noarch fedora-release-35-33.noarch fedora-release-common-35-33.noarch fedora-release-identity-basic-35-33.noarch fedora-repos-35-1.noarch file-5.40-9.fc35.i686 file-libs-5.40-9.fc35.i686 filesystem-3.14-7.fc35.i686 findutils-1:4.8.0-4.fc35.i686 fonts-srpm-macros-1:2.0.5-6.fc35.noarch fpc-srpm-macros-1.3-4.fc35.noarch gawk-5.1.0-4.fc35.i686 gdb-minimal-10.2-9.fc35.i686 gdbm-libs-1:1.20-2.fc35.i686 ghc-srpm-macros-1.5.0-5.fc35.noarch glibc-2.34-7.fc35.i686 glibc-common-2.34-7.fc35.i686 glibc-gconv-extra-2.34-7.fc35.i686 glibc-minimal-langpack-2.34-7.fc35.i686 gmp-1:6.2.0-7.fc35.i686 gnat-srpm-macros-4-14.fc35.noarch go-srpm-macros-3.0.11-2.fc35.noarch grep-3.6-4.fc35.i686 gzip-1.10-5.fc35.i686 info-6.8-2.fc35.i686 kernel-srpm-macros-1.0-6.fc35.noarch keyutils-libs-1.6.1-3.fc35.i686 krb5-libs-1.19.2-2.fc35.i686 libacl-2.3.1-2.fc35.i686 libarchive-3.5.2-2.fc35.i686 libattr-2.5.1-3.fc35.i686 libblkid-2.37.2-1.fc35.i686 libbrotli-1.0.9-6.fc35.i686 libcap-2.48-3.fc35.i686 libcap-ng-0.8.2-6.fc35.i686 libcom_err-1.46.3-1.fc35.i686 libcurl-7.78.0-3.fc35.i686 libdb-5.3.28-50.fc35.i686 libeconf-0.4.0-2.fc35.i686 libfdisk-2.37.2-1.fc35.i686 libffi-3.1-29.fc35.i686 libgcc-11.2.1-1.fc35.i686 libgcrypt-1.9.4-1.fc35.i686 libgomp-11.2.1-1.fc35.i686 libgpg-error-1.42-3.fc35.i686 libidn2-2.3.2-3.fc35.i686 libmount-2.37.2-1.fc35.i686 libnghttp2-1.45.1-1.fc35.i686 libnsl2-1.3.0-4.fc35.i686 libpkgconf-1.8.0-1.fc35.i686 libpsl-0.21.1-4.fc35.i686 libpwquality-1.4.4-6.fc35.i686 libselinux-3.2-4.fc35.i686 libsemanage-3.2-4.fc35.i686 libsepol-3.2-3.fc35.i686 libsigsegv-2.13-3.fc35.i686 libsmartcols-2.37.2-1.fc35.i686 libssh-0.9.6-1.fc35.i686 libssh-config-0.9.6-1.fc35.noarch libstdc++-11.2.1-1.fc35.i686 libtasn1-4.16.0-6.fc35.i686 libtirpc-1.3.2-1.fc35.i686 libunistring-0.9.10-14.fc35.i686 libutempter-1.2.1-5.fc35.i686 libuuid-2.37.2-1.fc35.i686 libverto-0.3.2-2.fc35.i686 libxcrypt-4.4.26-4.fc35.i686 libxml2-2.9.12-6.fc35.i686 libzstd-1.5.0-2.fc35.i686 lua-libs-5.4.3-2.fc35.i686 lua-srpm-macros-1-5.fc35.noarch lz4-libs-1.9.3-3.fc35.i686 mpfr-4.1.0-8.fc35.i686 ncurses-base-6.2-8.20210508.fc35.noarch ncurses-libs-6.2-8.20210508.fc35.i686 nim-srpm-macros-3-5.fc35.noarch ocaml-srpm-macros-6-5.fc35.noarch openblas-srpm-macros-2-10.fc35.noarch openldap-2.4.59-3.fc35.i686 openssl-libs-1:1.1.1l-2.fc35.i686 p11-kit-0.23.22-4.fc35.i686 p11-kit-trust-0.23.22-4.fc35.i686 pam-1.5.2-5.fc35.i686 patch-2.7.6-15.fc35.i686 pcre-8.45-1.fc35.i686 pcre2-10.37-4.fc35.i686 pcre2-syntax-10.37-4.fc35.noarch perl-srpm-macros-1-42.fc35.noarch pkgconf-1.8.0-1.fc35.i686 pkgconf-m4-1.8.0-1.fc35.noarch pkgconf-pkg-config-1.8.0-1.fc35.i686 popt-1.18-6.fc35.i686 publicsuffix-list-dafsa-20210518-2.fc35.noarch python-srpm-macros-3.10-8.fc35.noarch qt5-srpm-macros-5.15.2-3.fc35.noarch readline-8.1-3.fc35.i686 redhat-rpm-config-197-1.fc35.noarch rpm-4.17.0-1.fc35.i686 rpm-build-4.17.0-1.fc35.i686 rpm-build-libs-4.17.0-1.fc35.i686 rpm-libs-4.17.0-1.fc35.i686 rpmautospec-rpm-macros-0.2.5-1.fc35.noarch rust-srpm-macros-18-2.fc35.noarch sed-4.8-8.fc35.i686 setup-2.13.9.1-2.fc35.noarch shadow-utils-2:4.9-3.fc35.i686 sqlite-libs-3.36.0-3.fc35.i686 systemd-libs-249.4-2.fc35.i686 tar-2:1.34-2.fc35.i686 tzdata-2021b-1.fc35.noarch unzip-6.0-53.fc35.i686 util-linux-2.37.2-1.fc35.i686 util-linux-core-2.37.2-1.fc35.i686 which-2.21-27.fc35.i686 xxhash-libs-0.8.0-4.fc35.i686 xz-5.2.5-7.fc35.i686 xz-libs-5.2.5-7.fc35.i686 zip-3.0-31.fc35.i686 zlib-1.2.11-30.fc35.i686 zstd-1.5.0-2.fc35.i686 Complete! Finish: dnf install Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: pkgconf-pkg-config-1.8.0-1.fc35.i686 openblas-srpm-macros-2-10.fc35.noarch libnghttp2-1.45.1-1.fc35.i686 fedora-release-common-35-33.noarch keyutils-libs-1.6.1-3.fc35.i686 tzdata-2021b-1.fc35.noarch libcurl-7.78.0-3.fc35.i686 file-libs-5.40-9.fc35.i686 fedora-release-identity-basic-35-33.noarch unzip-6.0-53.fc35.i686 krb5-libs-1.19.2-2.fc35.i686 shadow-utils-4.9-3.fc35.i686 diffutils-3.8-1.fc35.i686 util-linux-core-2.37.2-1.fc35.i686 gnat-srpm-macros-4-14.fc35.noarch libxml2-2.9.12-6.fc35.i686 libstdc++-11.2.1-1.fc35.i686 libselinux-3.2-4.fc35.i686 rpmautospec-rpm-macros-0.2.5-1.fc35.noarch libpkgconf-1.8.0-1.fc35.i686 libtasn1-4.16.0-6.fc35.i686 zstd-1.5.0-2.fc35.i686 fedora-repos-35-1.noarch rpm-4.17.0-1.fc35.i686 ocaml-srpm-macros-6-5.fc35.noarch perl-srpm-macros-1-42.fc35.noarch filesystem-3.14-7.fc35.i686 lua-srpm-macros-1-5.fc35.noarch libarchive-3.5.2-2.fc35.i686 pkgconf-m4-1.8.0-1.fc35.noarch ghc-srpm-macros-1.5.0-5.fc35.noarch p11-kit-trust-0.23.22-4.fc35.i686 fonts-srpm-macros-2.0.5-6.fc35.noarch libeconf-0.4.0-2.fc35.i686 pcre2-10.37-4.fc35.i686 libgomp-11.2.1-1.fc35.i686 tar-1.34-2.fc35.i686 lz4-libs-1.9.3-3.fc35.i686 libxcrypt-4.4.26-4.fc35.i686 cyrus-sasl-lib-2.1.27-13.fc35.i686 libnsl2-1.3.0-4.fc35.i686 rpm-build-4.17.0-1.fc35.i686 bash-5.1.8-2.fc35.i686 coreutils-8.32-31.fc35.i686 elfutils-debuginfod-client-0.185-5.fc35.i686 ca-certificates-2021.2.50-3.fc35.noarch gmp-6.2.0-7.fc35.i686 coreutils-common-8.32-31.fc35.i686 libffi-3.1-29.fc35.i686 patch-2.7.6-15.fc35.i686 libsepol-3.2-3.fc35.i686 libssh-0.9.6-1.fc35.i686 binutils-gold-2.37-10.fc35.i686 libsigsegv-2.13-3.fc35.i686 popt-1.18-6.fc35.i686 libverto-0.3.2-2.fc35.i686 gdb-minimal-10.2-9.fc35.i686 libssh-config-0.9.6-1.fc35.noarch mpfr-4.1.0-8.fc35.i686 lua-libs-5.4.3-2.fc35.i686 fedora-gpg-keys-35-1.noarch libcap-2.48-3.fc35.i686 zip-3.0-31.fc35.i686 pcre-8.45-1.fc35.i686 redhat-rpm-config-197-1.fc35.noarch which-2.21-27.fc35.i686 nim-srpm-macros-3-5.fc35.noarch libpwquality-1.4.4-6.fc35.i686 sqlite-libs-3.36.0-3.fc35.i686 basesystem-11-12.fc35.noarch libmount-2.37.2-1.fc35.i686 rpm-build-libs-4.17.0-1.fc35.i686 libfdisk-2.37.2-1.fc35.i686 publicsuffix-list-dafsa-20210518-2.fc35.noarch libsemanage-3.2-4.fc35.i686 audit-libs-3.0.6-1.fc35.i686 file-5.40-9.fc35.i686 libattr-2.5.1-3.fc35.i686 cpio-2.13-11.fc35.i686 curl-7.78.0-3.fc35.i686 elfutils-libs-0.185-5.fc35.i686 bzip2-libs-1.0.8-9.fc35.i686 glibc-minimal-langpack-2.34-7.fc35.i686 libgcc-11.2.1-1.fc35.i686 alternatives-1.19-1.fc35.i686 openssl-libs-1.1.1l-2.fc35.i686 libbrotli-1.0.9-6.fc35.i686 zlib-1.2.11-30.fc35.i686 libacl-2.3.1-2.fc35.i686 gawk-5.1.0-4.fc35.i686 elfutils-0.185-5.fc35.i686 gdbm-libs-1.20-2.fc35.i686 kernel-srpm-macros-1.0-6.fc35.noarch readline-8.1-3.fc35.i686 grep-3.6-4.fc35.i686 libcap-ng-0.8.2-6.fc35.i686 rpm-libs-4.17.0-1.fc35.i686 crypto-policies-20210819-1.gitd0fdcfb.fc35.noarch libzstd-1.5.0-2.fc35.i686 pam-1.5.2-5.fc35.i686 p11-kit-0.23.22-4.fc35.i686 libblkid-2.37.2-1.fc35.i686 elfutils-libelf-0.185-5.fc35.i686 qt5-srpm-macros-5.15.2-3.fc35.noarch libgpg-error-1.42-3.fc35.i686 dwz-0.14-2.fc35.i686 libunistring-0.9.10-14.fc35.i686 info-6.8-2.fc35.i686 xxhash-libs-0.8.0-4.fc35.i686 libsmartcols-2.37.2-1.fc35.i686 fpc-srpm-macros-1.3-4.fc35.noarch libutempter-1.2.1-5.fc35.i686 libcom_err-1.46.3-1.fc35.i686 ncurses-libs-6.2-8.20210508.fc35.i686 sed-4.8-8.fc35.i686 setup-2.13.9.1-2.fc35.noarch python-srpm-macros-3.10-8.fc35.noarch libtirpc-1.3.2-1.fc35.i686 fedora-release-35-33.noarch xz-5.2.5-7.fc35.i686 systemd-libs-249.4-2.fc35.i686 ed-1.14.2-11.fc35.i686 debugedit-5.0-2.fc35.i686 pcre2-syntax-10.37-4.fc35.noarch findutils-4.8.0-4.fc35.i686 bzip2-1.0.8-9.fc35.i686 libgcrypt-1.9.4-1.fc35.i686 elfutils-default-yama-scope-0.185-5.fc35.noarch efi-srpm-macros-5-4.fc35.noarch util-linux-2.37.2-1.fc35.i686 rust-srpm-macros-18-2.fc35.noarch gzip-1.10-5.fc35.i686 libpsl-0.21.1-4.fc35.i686 cracklib-2.9.6-27.fc35.i686 glibc-2.34-7.fc35.i686 go-srpm-macros-3.0.11-2.fc35.noarch glibc-common-2.34-7.fc35.i686 binutils-2.37-10.fc35.i686 ncurses-base-6.2-8.20210508.fc35.noarch openldap-2.4.59-3.fc35.i686 libidn2-2.3.2-3.fc35.i686 xz-libs-5.2.5-7.fc35.i686 glibc-gconv-extra-2.34-7.fc35.i686 libdb-5.3.28-50.fc35.i686 pkgconf-1.8.0-1.fc35.i686 libuuid-2.37.2-1.fc35.i686 Start: buildsrpm Start: rpmbuild -bs Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1557360000 Wrote: /builddir/build/SRPMS/mongodb-4.0.3-4.fc35.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 3 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-35-i686-1635456836.472326/root/var/log/dnf.rpm.log /var/lib/mock/fedora-35-i686-1635456836.472326/root/var/log/dnf.librepo.log /var/lib/mock/fedora-35-i686-1635456836.472326/root/var/log/dnf.log Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-1kxr8bb_/mongodb/mongodb.spec) Config(child) 0 minutes 31 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot Finish: run Running (timeout=18000): unbuffer mock --rebuild /var/lib/copr-rpmbuild/results/mongodb-4.0.3-4.fc35.src.rpm --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1635456836.472326 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 2.12 starting (python version = 3.9.7, NVR = mock-2.12-1.fc34)... Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/results/mongodb-4.0.3-4.fc35.src.rpm) Config(fedora-35-i686) Start: clean chroot Finish: clean chroot Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-35-i686-1635456836.472326/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin Mock Version: 2.12 INFO: Mock Version: 2.12 Start: dnf update No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 44 kB/s | 3.3 kB 00:00 local 93 kB/s | 3.8 kB 00:00 Dependencies resolved. Nothing to do. Complete! Finish: dnf update Finish: chroot init Start: build phase for mongodb-4.0.3-4.fc35.src.rpm Start: build setup for mongodb-4.0.3-4.fc35.src.rpm Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1557360000 Wrote: /builddir/build/SRPMS/mongodb-4.0.3-4.fc35.src.rpm No matches found for the following disable plugin patterns: local, spacewalk, versionlock Copr repository 34 kB/s | 3.3 kB 00:00 local 86 kB/s | 3.8 kB 00:00 Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: boost-devel  i686 1.76.0-4.fc35 local 11 M gcc-c++  i686 11.2.1-1.fc35 local 12 M gperftools-devel  i686 2.9.1-2.fc35 local 392 k libcurl-devel  i686 7.78.0-3.fc35 local 857 k libpcap-devel  i686 14:1.10.1-2.fc35 local 142 k libstemmer-devel  i686 0-17.585svn.fc35 local 9.7 k openssl-devel  i686 1:1.1.1l-2.fc35 local 2.2 M pcre-devel  i686 8.45-1.fc35 local 470 k python3-cheetah  i686 3.2.4-8.fc35 local 319 k python3-devel  i686 3.10.0-1.fc35 local 206 k python3-pyyaml  i686 5.4.1-4.fc35 local 191 k python3-requests  noarch 2.26.0-1.fc35 local 117 k python3-scons  noarch 4.2.0-1.fc35 local 2.2 M snappy-devel  i686 1.1.9-3.fc35 local 22 k systemd  i686 249.4-2.fc35 local 4.3 M valgrind-devel  i686 1:3.17.0-13.fc35 local 49 k yaml-cpp-devel  i686 0.6.3-5.fc35 local 33 k zlib-devel  i686 1.2.11-30.fc35 local 44 k Installing dependencies: acl  i686 2.3.1-2.fc35 local 72 k annobin-docs  noarch 9.87-2.fc35 local 79 k annobin-plugin-gcc  i686 9.87-2.fc35 local 44 k boost  i686 1.76.0-4.fc35 local 14 k boost-atomic  i686 1.76.0-4.fc35 local 19 k boost-chrono  i686 1.76.0-4.fc35 local 29 k boost-container  i686 1.76.0-4.fc35 local 40 k boost-context  i686 1.76.0-4.fc35 local 18 k boost-contract  i686 1.76.0-4.fc35 local 49 k boost-coroutine  i686 1.76.0-4.fc35 local 36 k boost-date-time  i686 1.76.0-4.fc35 local 15 k boost-fiber  i686 1.76.0-4.fc35 local 44 k boost-filesystem  i686 1.76.0-4.fc35 local 65 k boost-graph  i686 1.76.0-4.fc35 local 154 k boost-iostreams  i686 1.76.0-4.fc35 local 42 k boost-locale  i686 1.76.0-4.fc35 local 237 k boost-log  i686 1.76.0-4.fc35 local 513 k boost-math  i686 1.76.0-4.fc35 local 200 k boost-nowide  i686 1.76.0-4.fc35 local 18 k boost-numpy3  i686 1.76.0-4.fc35 local 30 k boost-program-options  i686 1.76.0-4.fc35 local 114 k boost-python3  i686 1.76.0-4.fc35 local 101 k boost-random  i686 1.76.0-4.fc35 local 27 k boost-regex  i686 1.76.0-4.fc35 local 117 k boost-serialization  i686 1.76.0-4.fc35 local 141 k boost-stacktrace  i686 1.76.0-4.fc35 local 30 k boost-system  i686 1.76.0-4.fc35 local 15 k boost-test  i686 1.76.0-4.fc35 local 245 k boost-thread  i686 1.76.0-4.fc35 local 61 k boost-timer  i686 1.76.0-4.fc35 local 27 k boost-type_erasure  i686 1.76.0-4.fc35 local 34 k boost-wave  i686 1.76.0-4.fc35 local 213 k cmake-filesystem  i686 3.21.3-1.fc35 local 17 k cpp  i686 11.2.1-1.fc35 local 9.9 M cryptsetup-libs  i686 2.4.1-1.fc35 local 461 k dbus  i686 1:1.12.20-5.fc35 local 7.4 k dbus-broker  i686 29-4.fc35 local 178 k dbus-common  noarch 1:1.12.20-5.fc35 local 14 k device-mapper  i686 1.02.175-6.fc35 local 142 k device-mapper-libs  i686 1.02.175-6.fc35 local 193 k expat  i686 2.4.1-2.fc35 local 113 k flexiblas  i686 3.0.4-6.fc35 local 31 k flexiblas-netlib  i686 3.0.4-6.fc35 local 2.9 M flexiblas-openblas-openmp  i686 3.0.4-6.fc35 local 17 k gc  i686 8.0.4-6.fc35 local 105 k gcc  i686 11.2.1-1.fc35 local 31 M glibc-devel  i686 2.34-7.fc35 local 151 k glibc-headers-x86  noarch 2.34-7.fc35 local 548 k gperftools-libs  i686 2.9.1-2.fc35 local 315 k groff-base  i686 1.22.4-8.fc35 local 1.0 M guile22  i686 2.2.7-3.fc35 local 6.5 M iptables-legacy-libs  i686 1.8.7-13.fc35 local 41 k json-c  i686 0.15-2.fc35 local 46 k kernel-headers  i686 5.14.9-300.fc35 local 1.3 M kmod-libs  i686 29-4.fc35 local 69 k libargon2  i686 20171227-7.fc35 local 31 k libasan  i686 11.2.1-1.fc35 local 445 k libatomic  i686 11.2.1-1.fc35 local 47 k libgfortran  i686 11.2.1-1.fc35 local 778 k libibverbs  i686 37.0-1.fc35 local 426 k libicu  i686 69.1-2.fc35 local 9.9 M libicu-devel  i686 69.1-2.fc35 local 839 k libmpc  i686 1.2.1-3.fc35 local 67 k libnl3  i686 3.5.0-8.fc35 local 350 k libpcap  i686 14:1.10.1-2.fc35 local 178 k libquadmath  i686 11.2.1-1.fc35 local 255 k libquadmath-devel  i686 11.2.1-1.fc35 local 50 k libseccomp  i686 2.5.0-5.fc35 local 72 k libstdc++-devel  i686 11.2.1-1.fc35 local 2.2 M libstemmer  i686 0-17.585svn.fc35 local 80 k libtool-ltdl  i686 2.4.6-42.fc35 local 38 k libubsan  i686 11.2.1-1.fc35 local 218 k libunwind  i686 1.5.0-1.fc35 local 64 k libxcrypt-devel  i686 4.4.26-4.fc35 local 29 k libyaml  i686 0.2.5-6.fc35 local 63 k make  i686 1:4.3-6.fc35 local 540 k mpdecimal  i686 2.5.1-2.fc35 local 106 k ncurses  i686 6.2-8.20210508.fc35 local 403 k openblas  i686 0.3.17-2.fc35 local 33 k openblas-openmp  i686 0.3.17-2.fc35 local 3.7 M pcre-cpp  i686 8.45-1.fc35 local 27 k pcre-utf16  i686 8.45-1.fc35 local 181 k pcre-utf32  i686 8.45-1.fc35 local 172 k perl-Carp  noarch 1.52-478.fc35 local 29 k perl-Class-Struct  noarch 0.66-481.fc35 local 31 k perl-DynaLoader  i686 1.50-481.fc35 local 35 k perl-Encode  i686 4:3.12-480.fc35 local 1.2 M perl-Errno  i686 1.33-481.fc35 local 24 k perl-Exporter  noarch 5.76-479.fc35 local 31 k perl-Fcntl  i686 1.14-481.fc35 local 30 k perl-File-Basename  noarch 2.85-481.fc35 local 26 k perl-File-Path  noarch 2.18-478.fc35 local 35 k perl-File-Temp  noarch 1:0.231.100-478.fc35 local 59 k perl-File-stat  noarch 1.09-481.fc35 local 26 k perl-Getopt-Long  noarch 1:2.52-478.fc35 local 60 k perl-Getopt-Std  noarch 1.13-481.fc35 local 25 k perl-HTTP-Tiny  noarch 0.078-1.fc35 local 55 k perl-IO  i686 1.46-481.fc35 local 97 k perl-IPC-Open3  noarch 1.21-481.fc35 local 32 k perl-MIME-Base64  i686 3.16-478.fc35 local 30 k perl-POSIX  i686 1.97-481.fc35 local 110 k perl-PathTools  i686 3.80-478.fc35 local 85 k perl-Pod-Escapes  noarch 1:1.07-478.fc35 local 20 k perl-Pod-Perldoc  noarch 3.28.01-479.fc35 local 84 k perl-Pod-Simple  noarch 1:3.43-2.fc35 local 215 k perl-Pod-Usage  noarch 4:2.01-478.fc35 local 40 k perl-Scalar-List-Utils  i686 5:1.56-461.fc35 local 74 k perl-SelectSaver  noarch 1.02-481.fc35 local 21 k perl-Socket  i686 4:2.032-2.fc35 local 56 k perl-Storable  i686 1:3.25-1.fc35 local 97 k perl-Symbol  noarch 1.09-481.fc35 local 23 k perl-Term-ANSIColor  noarch 5.01-479.fc35 local 48 k perl-Term-Cap  noarch 1.17-478.fc35 local 22 k perl-Text-ParseWords  noarch 3.30-478.fc35 local 16 k perl-Text-Tabs+Wrap  noarch 2021.0814-1.fc35 local 22 k perl-Time-Local  noarch 2:1.300-478.fc35 local 33 k perl-constant  noarch 1.33-479.fc35 local 23 k perl-if  noarch 0.60.900-481.fc35 local 23 k perl-interpreter  i686 4:5.34.0-481.fc35 local 80 k perl-libs  i686 4:5.34.0-481.fc35 local 2.2 M perl-mro  i686 1.25-481.fc35 local 38 k perl-overload  noarch 1.33-481.fc35 local 55 k perl-overloading  noarch 0.02-481.fc35 local 22 k perl-parent  noarch 1:0.238-478.fc35 local 14 k perl-podlators  noarch 1:4.14-478.fc35 local 111 k perl-subs  noarch 1.04-481.fc35 local 21 k perl-vars  noarch 1.05-481.fc35 local 22 k pyproject-rpm-macros  noarch 0-47.fc35 local 34 k python-pip-wheel  noarch 21.2.3-2.fc35 local 1.3 M python-rpm-macros  noarch 3.10-8.fc35 local 15 k python-setuptools-wheel  noarch 57.4.0-1.fc35 local 505 k python3  i686 3.10.0-1.fc35 local 25 k python3-charset-normalizer  noarch 2.0.4-1.fc35 local 68 k python3-idna  noarch 3.2-1.fc35 local 97 k python3-libs  i686 3.10.0-1.fc35 local 7.5 M python3-numpy  i686 1:1.21.1-1.fc35 local 5.3 M python3-packaging  noarch 21.0-2.fc35 local 72 k python3-pyparsing  noarch 2.4.7-9.fc35 local 151 k python3-pysocks  noarch 1.7.1-11.fc35 local 34 k python3-rpm-generators  noarch 12-8.fc35 local 31 k python3-rpm-macros  noarch 3.10-8.fc35 local 14 k python3-setuptools  noarch 57.4.0-1.fc35 local 928 k python3-six  noarch 1.16.0-4.fc35 local 36 k python3-urllib3  noarch 1.26.6-2.fc35 local 183 k snappy  i686 1.1.9-3.fc35 local 37 k systemd-pam  i686 249.4-2.fc35 local 337 k systemd-rpm-macros  noarch 249.4-2.fc35 local 28 k valgrind  i686 1:3.17.0-13.fc35 local 4.4 M yaml-cpp  i686 0.6.3-5.fc35 local 132 k Transaction Summary ================================================================================ Install 167 Packages Total download size: 140 M Installed size: 589 M Downloading Packages: (1/167): annobin-plugin-gcc-9.87-2.fc35.i686.rp 701 kB/s | 44 kB 00:00 (2/167): acl-2.3.1-2.fc35.i686.rpm 990 kB/s | 72 kB 00:00 (3/167): boost-1.76.0-4.fc35.i686.rpm 1.1 MB/s | 14 kB 00:00 (4/167): annobin-docs-9.87-2.fc35.noarch.rpm 962 kB/s | 79 kB 00:00 (5/167): boost-atomic-1.76.0-4.fc35.i686.rpm 1.5 MB/s | 19 kB 00:00 (6/167): boost-chrono-1.76.0-4.fc35.i686.rpm 2.5 MB/s | 29 kB 00:00 (7/167): boost-context-1.76.0-4.fc35.i686.rpm 1.5 MB/s | 18 kB 00:00 (8/167): boost-container-1.76.0-4.fc35.i686.rpm 2.5 MB/s | 40 kB 00:00 (9/167): boost-contract-1.76.0-4.fc35.i686.rpm 3.3 MB/s | 49 kB 00:00 (10/167): boost-coroutine-1.76.0-4.fc35.i686.rp 2.8 MB/s | 36 kB 00:00 (11/167): boost-date-time-1.76.0-4.fc35.i686.rp 1.0 MB/s | 15 kB 00:00 (12/167): boost-fiber-1.76.0-4.fc35.i686.rpm 2.9 MB/s | 44 kB 00:00 (13/167): boost-filesystem-1.76.0-4.fc35.i686.r 3.9 MB/s | 65 kB 00:00 (14/167): boost-iostreams-1.76.0-4.fc35.i686.rp 2.6 MB/s | 42 kB 00:00 (15/167): boost-graph-1.76.0-4.fc35.i686.rpm 6.7 MB/s | 154 kB 00:00 (16/167): boost-locale-1.76.0-4.fc35.i686.rpm 8.3 MB/s | 237 kB 00:00 (17/167): boost-math-1.76.0-4.fc35.i686.rpm 11 MB/s | 200 kB 00:00 (18/167): boost-log-1.76.0-4.fc35.i686.rpm 11 MB/s | 513 kB 00:00 (19/167): boost-nowide-1.76.0-4.fc35.i686.rpm 1.3 MB/s | 18 kB 00:00 (20/167): boost-numpy3-1.76.0-4.fc35.i686.rpm 2.3 MB/s | 30 kB 00:00 (21/167): boost-python3-1.76.0-4.fc35.i686.rpm 6.9 MB/s | 101 kB 00:00 (22/167): boost-program-options-1.76.0-4.fc35.i 6.7 MB/s | 114 kB 00:00 (23/167): boost-random-1.76.0-4.fc35.i686.rpm 2.3 MB/s | 27 kB 00:00 (24/167): boost-regex-1.76.0-4.fc35.i686.rpm 5.7 MB/s | 117 kB 00:00 (25/167): boost-stacktrace-1.76.0-4.fc35.i686.r 2.2 MB/s | 30 kB 00:00 (26/167): boost-serialization-1.76.0-4.fc35.i68 4.6 MB/s | 141 kB 00:00 (27/167): boost-system-1.76.0-4.fc35.i686.rpm 1.1 MB/s | 15 kB 00:00 (28/167): boost-thread-1.76.0-4.fc35.i686.rpm 4.0 MB/s | 61 kB 00:00 (29/167): boost-test-1.76.0-4.fc35.i686.rpm 7.6 MB/s | 245 kB 00:00 (30/167): boost-timer-1.76.0-4.fc35.i686.rpm 1.8 MB/s | 27 kB 00:00 (31/167): boost-type_erasure-1.76.0-4.fc35.i686 2.5 MB/s | 34 kB 00:00 (32/167): boost-wave-1.76.0-4.fc35.i686.rpm 11 MB/s | 213 kB 00:00 (33/167): cmake-filesystem-3.21.3-1.fc35.i686.r 1.3 MB/s | 17 kB 00:00 (34/167): cryptsetup-libs-2.4.1-1.fc35.i686.rpm 6.4 MB/s | 461 kB 00:00 (35/167): dbus-1.12.20-5.fc35.i686.rpm 600 kB/s | 7.4 kB 00:00 (36/167): dbus-broker-29-4.fc35.i686.rpm 5.0 MB/s | 178 kB 00:00 (37/167): dbus-common-1.12.20-5.fc35.noarch.rpm 1.4 MB/s | 14 kB 00:00 (38/167): device-mapper-1.02.175-6.fc35.i686.rp 5.0 MB/s | 142 kB 00:00 (39/167): cpp-11.2.1-1.fc35.i686.rpm 55 MB/s | 9.9 MB 00:00 (40/167): device-mapper-libs-1.02.175-6.fc35.i6 5.9 MB/s | 193 kB 00:00 (41/167): flexiblas-3.0.4-6.fc35.i686.rpm 2.5 MB/s | 31 kB 00:00 (42/167): expat-2.4.1-2.fc35.i686.rpm 4.6 MB/s | 113 kB 00:00 (43/167): flexiblas-openblas-openmp-3.0.4-6.fc3 1.3 MB/s | 17 kB 00:00 (44/167): gc-8.0.4-6.fc35.i686.rpm 3.2 MB/s | 105 kB 00:00 (45/167): boost-devel-1.76.0-4.fc35.i686.rpm 21 MB/s | 11 MB 00:00 (46/167): gcc-c++-11.2.1-1.fc35.i686.rpm 40 MB/s | 12 MB 00:00 (47/167): glibc-devel-2.34-7.fc35.i686.rpm 9.3 MB/s | 151 kB 00:00 (48/167): flexiblas-netlib-3.0.4-6.fc35.i686.rp 6.6 MB/s | 2.9 MB 00:00 (49/167): glibc-headers-x86-2.34-7.fc35.noarch. 22 MB/s | 548 kB 00:00 (50/167): gperftools-libs-2.9.1-2.fc35.i686.rpm 16 MB/s | 315 kB 00:00 (51/167): gperftools-devel-2.9.1-2.fc35.i686.rp 7.7 MB/s | 392 kB 00:00 (52/167): groff-base-1.22.4-8.fc35.i686.rpm 31 MB/s | 1.0 MB 00:00 (53/167): iptables-legacy-libs-1.8.7-13.fc35.i6 3.2 MB/s | 41 kB 00:00 (54/167): json-c-0.15-2.fc35.i686.rpm 3.5 MB/s | 46 kB 00:00 (55/167): kernel-headers-5.14.9-300.fc35.i686.r 34 MB/s | 1.3 MB 00:00 (56/167): kmod-libs-29-4.fc35.i686.rpm 2.0 MB/s | 69 kB 00:00 (57/167): libargon2-20171227-7.fc35.i686.rpm 2.6 MB/s | 31 kB 00:00 (58/167): libasan-11.2.1-1.fc35.i686.rpm 22 MB/s | 445 kB 00:00 (59/167): libatomic-11.2.1-1.fc35.i686.rpm 4.2 MB/s | 47 kB 00:00 (60/167): libcurl-devel-7.78.0-3.fc35.i686.rpm 28 MB/s | 857 kB 00:00 (61/167): libgfortran-11.2.1-1.fc35.i686.rpm 28 MB/s | 778 kB 00:00 (62/167): gcc-11.2.1-1.fc35.i686.rpm 45 MB/s | 31 MB 00:00 (63/167): libibverbs-37.0-1.fc35.i686.rpm 10 MB/s | 426 kB 00:00 (64/167): libicu-devel-69.1-2.fc35.i686.rpm 28 MB/s | 839 kB 00:00 (65/167): libmpc-1.2.1-3.fc35.i686.rpm 5.1 MB/s | 67 kB 00:00 (66/167): libnl3-3.5.0-8.fc35.i686.rpm 12 MB/s | 350 kB 00:00 (67/167): libpcap-1.10.1-2.fc35.i686.rpm 11 MB/s | 178 kB 00:00 (68/167): libpcap-devel-1.10.1-2.fc35.i686.rpm 8.2 MB/s | 142 kB 00:00 (69/167): libquadmath-11.2.1-1.fc35.i686.rpm 17 MB/s | 255 kB 00:00 (70/167): libquadmath-devel-11.2.1-1.fc35.i686. 3.3 MB/s | 50 kB 00:00 (71/167): libseccomp-2.5.0-5.fc35.i686.rpm 5.0 MB/s | 72 kB 00:00 (72/167): libicu-69.1-2.fc35.i686.rpm 53 MB/s | 9.9 MB 00:00 (73/167): libstemmer-0-17.585svn.fc35.i686.rpm 4.9 MB/s | 80 kB 00:00 (74/167): libstemmer-devel-0-17.585svn.fc35.i68 543 kB/s | 9.7 kB 00:00 (75/167): libstdc++-devel-11.2.1-1.fc35.i686.rp 34 MB/s | 2.2 MB 00:00 (76/167): libtool-ltdl-2.4.6-42.fc35.i686.rpm 2.6 MB/s | 38 kB 00:00 (77/167): libubsan-11.2.1-1.fc35.i686.rpm 15 MB/s | 218 kB 00:00 (78/167): libunwind-1.5.0-1.fc35.i686.rpm 4.4 MB/s | 64 kB 00:00 (79/167): libxcrypt-devel-4.4.26-4.fc35.i686.rp 2.3 MB/s | 29 kB 00:00 (80/167): libyaml-0.2.5-6.fc35.i686.rpm 4.5 MB/s | 63 kB 00:00 (81/167): make-4.3-6.fc35.i686.rpm 22 MB/s | 540 kB 00:00 (82/167): mpdecimal-2.5.1-2.fc35.i686.rpm 6.9 MB/s | 106 kB 00:00 (83/167): openblas-0.3.17-2.fc35.i686.rpm 2.2 MB/s | 33 kB 00:00 (84/167): guile22-2.2.7-3.fc35.i686.rpm 12 MB/s | 6.5 MB 00:00 (85/167): ncurses-6.2-8.20210508.fc35.i686.rpm 15 MB/s | 403 kB 00:00 (86/167): pcre-cpp-8.45-1.fc35.i686.rpm 2.3 MB/s | 27 kB 00:00 (87/167): pcre-devel-8.45-1.fc35.i686.rpm 17 MB/s | 470 kB 00:00 (88/167): pcre-utf16-8.45-1.fc35.i686.rpm 9.4 MB/s | 181 kB 00:00 (89/167): openblas-openmp-0.3.17-2.fc35.i686.rp 46 MB/s | 3.7 MB 00:00 (90/167): pcre-utf32-8.45-1.fc35.i686.rpm 10 MB/s | 172 kB 00:00 (91/167): perl-Carp-1.52-478.fc35.noarch.rpm 2.4 MB/s | 29 kB 00:00 (92/167): perl-Class-Struct-0.66-481.fc35.noarc 3.0 MB/s | 31 kB 00:00 (93/167): perl-DynaLoader-1.50-481.fc35.i686.rp 2.4 MB/s | 35 kB 00:00 (94/167): perl-Errno-1.33-481.fc35.i686.rpm 1.8 MB/s | 24 kB 00:00 (95/167): perl-Encode-3.12-480.fc35.i686.rpm 35 MB/s | 1.2 MB 00:00 (96/167): perl-Exporter-5.76-479.fc35.noarch.rp 2.5 MB/s | 31 kB 00:00 (97/167): perl-File-Basename-2.85-481.fc35.noar 2.1 MB/s | 26 kB 00:00 (98/167): perl-File-Path-2.18-478.fc35.noarch.r 3.0 MB/s | 35 kB 00:00 (99/167): openssl-devel-1.1.1l-2.fc35.i686.rpm 14 MB/s | 2.2 MB 00:00 (100/167): perl-File-Temp-0.231.100-478.fc35.no 4.5 MB/s | 59 kB 00:00 (101/167): perl-File-stat-1.09-481.fc35.noarch. 2.7 MB/s | 26 kB 00:00 (102/167): perl-Getopt-Long-2.52-478.fc35.noarc 5.0 MB/s | 60 kB 00:00 (103/167): perl-Fcntl-1.14-481.fc35.i686.rpm 523 kB/s | 30 kB 00:00 (104/167): perl-Getopt-Std-1.13-481.fc35.noarch 2.4 MB/s | 25 kB 00:00 (105/167): perl-HTTP-Tiny-0.078-1.fc35.noarch.r 4.4 MB/s | 55 kB 00:00 (106/167): perl-IO-1.46-481.fc35.i686.rpm 7.8 MB/s | 97 kB 00:00 (107/167): perl-IPC-Open3-1.21-481.fc35.noarch. 3.2 MB/s | 32 kB 00:00 (108/167): perl-MIME-Base64-3.16-478.fc35.i686. 2.3 MB/s | 30 kB 00:00 (109/167): perl-POSIX-1.97-481.fc35.i686.rpm 8.1 MB/s | 110 kB 00:00 (110/167): perl-PathTools-3.80-478.fc35.i686.rp 7.1 MB/s | 85 kB 00:00 (111/167): perl-Pod-Escapes-1.07-478.fc35.noarc 1.6 MB/s | 20 kB 00:00 (112/167): perl-Pod-Perldoc-3.28.01-479.fc35.no 7.2 MB/s | 84 kB 00:00 (113/167): perl-Pod-Simple-3.43-2.fc35.noarch.r 11 MB/s | 215 kB 00:00 (114/167): perl-Pod-Usage-2.01-478.fc35.noarch. 3.3 MB/s | 40 kB 00:00 (115/167): perl-Scalar-List-Utils-1.56-461.fc35 6.0 MB/s | 74 kB 00:00 (116/167): perl-SelectSaver-1.02-481.fc35.noarc 1.9 MB/s | 21 kB 00:00 (117/167): perl-Storable-3.25-1.fc35.i686.rpm 8.0 MB/s | 97 kB 00:00 (118/167): perl-Socket-2.032-2.fc35.i686.rpm 4.0 MB/s | 56 kB 00:00 (119/167): perl-Symbol-1.09-481.fc35.noarch.rpm 2.3 MB/s | 23 kB 00:00 (120/167): perl-Term-ANSIColor-5.01-479.fc35.no 4.8 MB/s | 48 kB 00:00 (121/167): perl-Term-Cap-1.17-478.fc35.noarch.r 1.9 MB/s | 22 kB 00:00 (122/167): perl-Text-ParseWords-3.30-478.fc35.n 1.6 MB/s | 16 kB 00:00 (123/167): perl-Text-Tabs+Wrap-2021.0814-1.fc35 2.0 MB/s | 22 kB 00:00 (124/167): perl-Time-Local-1.300-478.fc35.noarc 2.4 MB/s | 33 kB 00:00 (125/167): perl-constant-1.33-479.fc35.noarch.r 2.3 MB/s | 23 kB 00:00 (126/167): perl-if-0.60.900-481.fc35.noarch.rpm 2.2 MB/s | 23 kB 00:00 (127/167): perl-interpreter-5.34.0-481.fc35.i68 5.1 MB/s | 80 kB 00:00 (128/167): perl-mro-1.25-481.fc35.i686.rpm 2.2 MB/s | 38 kB 00:00 (129/167): perl-overloading-0.02-481.fc35.noarc 2.2 MB/s | 22 kB 00:00 (130/167): perl-overload-1.33-481.fc35.noarch.r 2.5 MB/s | 55 kB 00:00 (131/167): perl-parent-0.238-478.fc35.noarch.rp 896 kB/s | 14 kB 00:00 (132/167): perl-podlators-4.14-478.fc35.noarch. 8.2 MB/s | 111 kB 00:00 (133/167): perl-subs-1.04-481.fc35.noarch.rpm 1.9 MB/s | 21 kB 00:00 (134/167): perl-vars-1.05-481.fc35.noarch.rpm 1.9 MB/s | 22 kB 00:00 (135/167): pyproject-rpm-macros-0-47.fc35.noarc 3.1 MB/s | 34 kB 00:00 (136/167): python-rpm-macros-3.10-8.fc35.noarch 1.3 MB/s | 15 kB 00:00 (137/167): python-pip-wheel-21.2.3-2.fc35.noarc 43 MB/s | 1.3 MB 00:00 (138/167): python-setuptools-wheel-57.4.0-1.fc3 24 MB/s | 505 kB 00:00 (139/167): python3-3.10.0-1.fc35.i686.rpm 1.7 MB/s | 25 kB 00:00 (140/167): python3-charset-normalizer-2.0.4-1.f 5.0 MB/s | 68 kB 00:00 (141/167): python3-cheetah-3.2.4-8.fc35.i686.rp 14 MB/s | 319 kB 00:00 (142/167): perl-libs-5.34.0-481.fc35.i686.rpm 16 MB/s | 2.2 MB 00:00 (143/167): python3-devel-3.10.0-1.fc35.i686.rpm 11 MB/s | 206 kB 00:00 (144/167): python3-idna-3.2-1.fc35.noarch.rpm 6.0 MB/s | 97 kB 00:00 (145/167): python3-packaging-21.0-2.fc35.noarch 4.6 MB/s | 72 kB 00:00 (146/167): python3-pyparsing-2.4.7-9.fc35.noarc 8.4 MB/s | 151 kB 00:00 (147/167): python3-pysocks-1.7.1-11.fc35.noarch 2.1 MB/s | 34 kB 00:00 (148/167): python3-pyyaml-5.4.1-4.fc35.i686.rpm 8.0 MB/s | 191 kB 00:00 (149/167): python3-requests-2.26.0-1.fc35.noarc 3.0 MB/s | 117 kB 00:00 (150/167): python3-rpm-generators-12-8.fc35.noa 1.8 MB/s | 31 kB 00:00 (151/167): python3-numpy-1.21.1-1.fc35.i686.rpm 36 MB/s | 5.3 MB 00:00 (152/167): python3-rpm-macros-3.10-8.fc35.noarc 1.2 MB/s | 14 kB 00:00 (153/167): python3-setuptools-57.4.0-1.fc35.noa 33 MB/s | 928 kB 00:00 (154/167): python3-six-1.16.0-4.fc35.noarch.rpm 2.9 MB/s | 36 kB 00:00 (155/167): python3-urllib3-1.26.6-2.fc35.noarch 7.4 MB/s | 183 kB 00:00 (156/167): snappy-1.1.9-3.fc35.i686.rpm 1.8 MB/s | 37 kB 00:00 (157/167): snappy-devel-1.1.9-3.fc35.i686.rpm 1.1 MB/s | 22 kB 00:00 (158/167): python3-scons-4.2.0-1.fc35.noarch.rp 12 MB/s | 2.2 MB 00:00 (159/167): systemd-pam-249.4-2.fc35.i686.rpm 8.9 MB/s | 337 kB 00:00 (160/167): systemd-rpm-macros-249.4-2.fc35.noar 2.6 MB/s | 28 kB 00:00 (161/167): systemd-249.4-2.fc35.i686.rpm 27 MB/s | 4.3 MB 00:00 (162/167): valgrind-devel-3.17.0-13.fc35.i686.r 3.4 MB/s | 49 kB 00:00 (163/167): yaml-cpp-0.6.3-5.fc35.i686.rpm 6.5 MB/s | 132 kB 00:00 (164/167): yaml-cpp-devel-0.6.3-5.fc35.i686.rpm 1.9 MB/s | 33 kB 00:00 (165/167): zlib-devel-1.2.11-30.fc35.i686.rpm 3.2 MB/s | 44 kB 00:00 (166/167): valgrind-3.17.0-13.fc35.i686.rpm 24 MB/s | 4.4 MB 00:00 (167/167): python3-libs-3.10.0-1.fc35.i686.rpm 12 MB/s | 7.5 MB 00:00 -------------------------------------------------------------------------------- Total 54 MB/s | 140 MB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python-rpm-macros-3.10-8.fc35.noarch 1/167 Installing : python3-rpm-macros-3.10-8.fc35.noarch 2/167 Installing : flexiblas-3.0.4-6.fc35.i686 3/167 Installing : cmake-filesystem-3.21.3-1.fc35.i686 4/167 Installing : pyproject-rpm-macros-0-47.fc35.noarch 5/167 Installing : systemd-rpm-macros-249.4-2.fc35.noarch 6/167 Installing : python-setuptools-wheel-57.4.0-1.fc35.noarch 7/167 Installing : python-pip-wheel-21.2.3-2.fc35.noarch 8/167 Installing : openblas-0.3.17-2.fc35.i686 9/167 Installing : libstdc++-devel-11.2.1-1.fc35.i686 10/167 Installing : kernel-headers-5.14.9-300.fc35.i686 11/167 Installing : glibc-headers-x86-2.34-7.fc35.noarch 12/167 Installing : libxcrypt-devel-4.4.26-4.fc35.i686 13/167 Installing : glibc-devel-2.34-7.fc35.i686 14/167 Installing : dbus-common-1:1.12.20-5.fc35.noarch 15/167 Running scriptlet: dbus-common-1:1.12.20-5.fc35.noarch 15/167 Installing : annobin-docs-9.87-2.fc35.noarch 16/167 Installing : boost-system-1.76.0-4.fc35.i686 17/167 Installing : boost-chrono-1.76.0-4.fc35.i686 18/167 Installing : boost-thread-1.76.0-4.fc35.i686 19/167 Installing : libicu-69.1-2.fc35.i686 20/167 Installing : boost-filesystem-1.76.0-4.fc35.i686 21/167 Installing : boost-regex-1.76.0-4.fc35.i686 22/167 Installing : libquadmath-11.2.1-1.fc35.i686 23/167 Installing : libmpc-1.2.1-3.fc35.i686 24/167 Installing : boost-context-1.76.0-4.fc35.i686 25/167 Installing : libgfortran-11.2.1-1.fc35.i686 26/167 Installing : expat-2.4.1-2.fc35.i686 27/167 Installing : boost-python3-1.76.0-4.fc35.i686 28/167 Installing : boost-date-time-1.76.0-4.fc35.i686 29/167 Installing : boost-atomic-1.76.0-4.fc35.i686 30/167 Installing : boost-log-1.76.0-4.fc35.i686 31/167 Installing : boost-wave-1.76.0-4.fc35.i686 32/167 Running scriptlet: dbus-broker-29-4.fc35.i686 33/167 useradd warning: dbus's uid 81 outside of the SYS_UID_MIN 201 and SYS_UID_MAX 999 range. Installing : dbus-broker-29-4.fc35.i686 33/167 Running scriptlet: dbus-broker-29-4.fc35.i686 33/167 Installing : dbus-1:1.12.20-5.fc35.i686 34/167 Installing : openblas-openmp-0.3.17-2.fc35.i686 35/167 Installing : flexiblas-openblas-openmp-3.0.4-6.fc35.i686 36/167 Installing : flexiblas-netlib-3.0.4-6.fc35.i686 37/167 Installing : boost-coroutine-1.76.0-4.fc35.i686 38/167 Installing : boost-fiber-1.76.0-4.fc35.i686 39/167 Installing : cpp-11.2.1-1.fc35.i686 40/167 Installing : boost-graph-1.76.0-4.fc35.i686 41/167 Installing : boost-locale-1.76.0-4.fc35.i686 42/167 Installing : libicu-devel-69.1-2.fc35.i686 43/167 Installing : boost-type_erasure-1.76.0-4.fc35.i686 44/167 Installing : boost-timer-1.76.0-4.fc35.i686 45/167 Installing : yaml-cpp-0.6.3-5.fc35.i686 46/167 Installing : snappy-1.1.9-3.fc35.i686 47/167 Installing : pcre-utf32-8.45-1.fc35.i686 48/167 Installing : pcre-utf16-8.45-1.fc35.i686 49/167 Installing : pcre-cpp-8.45-1.fc35.i686 50/167 Installing : ncurses-6.2-8.20210508.fc35.i686 51/167 Installing : mpdecimal-2.5.1-2.fc35.i686 52/167 Installing : python3-3.10.0-1.fc35.i686 53/167 Installing : python3-libs-3.10.0-1.fc35.i686 54/167 Installing : python3-idna-3.2-1.fc35.noarch 55/167 Installing : python3-charset-normalizer-2.0.4-1.fc35.noarch 56/167 Installing : python3-pyparsing-2.4.7-9.fc35.noarch 57/167 Installing : python3-packaging-21.0-2.fc35.noarch 58/167 Installing : python3-rpm-generators-12-8.fc35.noarch 59/167 Installing : python3-pysocks-1.7.1-11.fc35.noarch 60/167 Installing : python3-setuptools-57.4.0-1.fc35.noarch 61/167 Installing : python3-six-1.16.0-4.fc35.noarch 62/167 Installing : python3-urllib3-1.26.6-2.fc35.noarch 63/167 Installing : python3-numpy-1:1.21.1-1.fc35.i686 64/167 Installing : boost-numpy3-1.76.0-4.fc35.i686 65/167 Installing : libyaml-0.2.5-6.fc35.i686 66/167 Installing : libunwind-1.5.0-1.fc35.i686 67/167 Installing : gperftools-libs-2.9.1-2.fc35.i686 68/167 Installing : libubsan-11.2.1-1.fc35.i686 69/167 Installing : libtool-ltdl-2.4.6-42.fc35.i686 70/167 Installing : libstemmer-0-17.585svn.fc35.i686 71/167 Installing : libseccomp-2.5.0-5.fc35.i686 72/167 Installing : libnl3-3.5.0-8.fc35.i686 73/167 Installing : libibverbs-37.0-1.fc35.i686 74/167 Installing : libpcap-14:1.10.1-2.fc35.i686 75/167 Installing : iptables-legacy-libs-1.8.7-13.fc35.i686 76/167 Installing : libatomic-11.2.1-1.fc35.i686 77/167 Installing : libasan-11.2.1-1.fc35.i686 78/167 Installing : libargon2-20171227-7.fc35.i686 79/167 Installing : kmod-libs-29-4.fc35.i686 80/167 Installing : json-c-0.15-2.fc35.i686 81/167 Running scriptlet: groff-base-1.22.4-8.fc35.i686 82/167 Installing : groff-base-1.22.4-8.fc35.i686 82/167 Running scriptlet: groff-base-1.22.4-8.fc35.i686 82/167 Installing : perl-Text-Tabs+Wrap-2021.0814-1.fc35.noarch 83/167 Installing : perl-if-0.60.900-481.fc35.noarch 84/167 Installing : perl-Time-Local-2:1.300-478.fc35.noarch 85/167 Installing : perl-File-Path-2.18-478.fc35.noarch 86/167 Installing : perl-Pod-Escapes-1:1.07-478.fc35.noarch 87/167 Installing : perl-Class-Struct-0.66-481.fc35.noarch 88/167 Installing : perl-POSIX-1.97-481.fc35.i686 89/167 Installing : perl-Term-ANSIColor-5.01-479.fc35.noarch 90/167 Installing : perl-IPC-Open3-1.21-481.fc35.noarch 91/167 Installing : perl-HTTP-Tiny-0.078-1.fc35.noarch 92/167 Installing : perl-subs-1.04-481.fc35.noarch 93/167 Installing : perl-File-Temp-1:0.231.100-478.fc35.noarch 94/167 Installing : perl-Term-Cap-1.17-478.fc35.noarch 95/167 Installing : perl-Pod-Simple-1:3.43-2.fc35.noarch 96/167 Installing : perl-Socket-4:2.032-2.fc35.i686 97/167 Installing : perl-SelectSaver-1.02-481.fc35.noarch 98/167 Installing : perl-Symbol-1.09-481.fc35.noarch 99/167 Installing : perl-File-stat-1.09-481.fc35.noarch 100/167 Installing : perl-podlators-1:4.14-478.fc35.noarch 101/167 Installing : perl-Pod-Perldoc-3.28.01-479.fc35.noarch 102/167 Installing : perl-Fcntl-1.14-481.fc35.i686 103/167 Installing : perl-Text-ParseWords-3.30-478.fc35.noarch 104/167 Installing : perl-mro-1.25-481.fc35.i686 105/167 Installing : perl-IO-1.46-481.fc35.i686 106/167 Installing : perl-overloading-0.02-481.fc35.noarch 107/167 Installing : perl-Pod-Usage-4:2.01-478.fc35.noarch 108/167 Installing : perl-Errno-1.33-481.fc35.i686 109/167 Installing : perl-File-Basename-2.85-481.fc35.noarch 110/167 Installing : perl-Getopt-Std-1.13-481.fc35.noarch 111/167 Installing : perl-MIME-Base64-3.16-478.fc35.i686 112/167 Installing : perl-Scalar-List-Utils-5:1.56-461.fc35.i686 113/167 Installing : perl-constant-1.33-479.fc35.noarch 114/167 Installing : perl-Storable-1:3.25-1.fc35.i686 115/167 Installing : perl-overload-1.33-481.fc35.noarch 116/167 Installing : perl-parent-1:0.238-478.fc35.noarch 117/167 Installing : perl-vars-1.05-481.fc35.noarch 118/167 Installing : perl-Getopt-Long-1:2.52-478.fc35.noarch 119/167 Installing : perl-DynaLoader-1.50-481.fc35.i686 120/167 Installing : perl-Carp-1.52-478.fc35.noarch 121/167 Installing : perl-Exporter-5.76-479.fc35.noarch 122/167 Installing : perl-PathTools-3.80-478.fc35.i686 123/167 Installing : perl-Encode-4:3.12-480.fc35.i686 124/167 Installing : perl-libs-4:5.34.0-481.fc35.i686 125/167 Installing : perl-interpreter-4:5.34.0-481.fc35.i686 126/167 Installing : valgrind-1:3.17.0-13.fc35.i686 127/167 Installing : gc-8.0.4-6.fc35.i686 128/167 Installing : guile22-2.2.7-3.fc35.i686 129/167 Installing : make-1:4.3-6.fc35.i686 130/167 Installing : gcc-11.2.1-1.fc35.i686 131/167 Installing : libquadmath-devel-11.2.1-1.fc35.i686 132/167 Installing : boost-test-1.76.0-4.fc35.i686 133/167 Installing : boost-stacktrace-1.76.0-4.fc35.i686 134/167 Installing : boost-serialization-1.76.0-4.fc35.i686 135/167 Installing : boost-random-1.76.0-4.fc35.i686 136/167 Installing : boost-program-options-1.76.0-4.fc35.i686 137/167 Installing : boost-nowide-1.76.0-4.fc35.i686 138/167 Installing : boost-math-1.76.0-4.fc35.i686 139/167 Installing : boost-iostreams-1.76.0-4.fc35.i686 140/167 Installing : boost-contract-1.76.0-4.fc35.i686 141/167 Installing : boost-container-1.76.0-4.fc35.i686 142/167 Installing : boost-1.76.0-4.fc35.i686 143/167 Installing : acl-2.3.1-2.fc35.i686 144/167 Installing : boost-devel-1.76.0-4.fc35.i686 145/167 Installing : valgrind-devel-1:3.17.0-13.fc35.i686 146/167 Installing : libpcap-devel-14:1.10.1-2.fc35.i686 147/167 Installing : libstemmer-devel-0-17.585svn.fc35.i686 148/167 Installing : gperftools-devel-2.9.1-2.fc35.i686 149/167 Installing : python3-requests-2.26.0-1.fc35.noarch 150/167 Installing : python3-scons-4.2.0-1.fc35.noarch 151/167 Installing : python3-devel-3.10.0-1.fc35.i686 152/167 Installing : pcre-devel-8.45-1.fc35.i686 153/167 Installing : snappy-devel-1.1.9-3.fc35.i686 154/167 Installing : yaml-cpp-devel-0.6.3-5.fc35.i686 155/167 Installing : zlib-devel-1.2.11-30.fc35.i686 156/167 Installing : openssl-devel-1:1.1.1l-2.fc35.i686 157/167 Installing : libcurl-devel-7.78.0-3.fc35.i686 158/167 Installing : cryptsetup-libs-2.4.1-1.fc35.i686 159/167 Installing : device-mapper-libs-1.02.175-6.fc35.i686 160/167 Installing : device-mapper-1.02.175-6.fc35.i686 161/167 Installing : systemd-pam-249.4-2.fc35.i686 162/167 Installing : systemd-249.4-2.fc35.i686 163/167 Running scriptlet: systemd-249.4-2.fc35.i686 163/167 Creating group input with gid 104. Creating group kvm with gid 36. Creating group render with gid 105. Creating group sgx with gid 106. Creating group systemd-journal with gid 190. Creating group systemd-network with gid 192. Creating user systemd-network (systemd Network Management) with uid 192 and gid 192. Creating group systemd-oom with gid 999. Creating user systemd-oom (systemd Userspace OOM Killer) with uid 999 and gid 999. Creating group systemd-resolve with gid 193. Creating user systemd-resolve (systemd Resolver) with uid 193 and gid 193. Creating group systemd-timesync with gid 998. Creating user systemd-timesync (systemd Time Synchronization) with uid 998 and gid 998. Creating group systemd-coredump with gid 997. Creating user systemd-coredump (systemd Core Dumper) with uid 997 and gid 997. Installing : annobin-plugin-gcc-9.87-2.fc35.i686 164/167 Installing : gcc-c++-11.2.1-1.fc35.i686 165/167 Installing : python3-pyyaml-5.4.1-4.fc35.i686 166/167 Installing : python3-cheetah-3.2.4-8.fc35.i686 167/167 Running scriptlet: python3-cheetah-3.2.4-8.fc35.i686 167/167 Verifying : acl-2.3.1-2.fc35.i686 1/167 Verifying : annobin-docs-9.87-2.fc35.noarch 2/167 Verifying : annobin-plugin-gcc-9.87-2.fc35.i686 3/167 Verifying : boost-1.76.0-4.fc35.i686 4/167 Verifying : boost-atomic-1.76.0-4.fc35.i686 5/167 Verifying : boost-chrono-1.76.0-4.fc35.i686 6/167 Verifying : boost-container-1.76.0-4.fc35.i686 7/167 Verifying : boost-context-1.76.0-4.fc35.i686 8/167 Verifying : boost-contract-1.76.0-4.fc35.i686 9/167 Verifying : boost-coroutine-1.76.0-4.fc35.i686 10/167 Verifying : boost-date-time-1.76.0-4.fc35.i686 11/167 Verifying : boost-devel-1.76.0-4.fc35.i686 12/167 Verifying : boost-fiber-1.76.0-4.fc35.i686 13/167 Verifying : boost-filesystem-1.76.0-4.fc35.i686 14/167 Verifying : boost-graph-1.76.0-4.fc35.i686 15/167 Verifying : boost-iostreams-1.76.0-4.fc35.i686 16/167 Verifying : boost-locale-1.76.0-4.fc35.i686 17/167 Verifying : boost-log-1.76.0-4.fc35.i686 18/167 Verifying : boost-math-1.76.0-4.fc35.i686 19/167 Verifying : boost-nowide-1.76.0-4.fc35.i686 20/167 Verifying : boost-numpy3-1.76.0-4.fc35.i686 21/167 Verifying : boost-program-options-1.76.0-4.fc35.i686 22/167 Verifying : boost-python3-1.76.0-4.fc35.i686 23/167 Verifying : boost-random-1.76.0-4.fc35.i686 24/167 Verifying : boost-regex-1.76.0-4.fc35.i686 25/167 Verifying : boost-serialization-1.76.0-4.fc35.i686 26/167 Verifying : boost-stacktrace-1.76.0-4.fc35.i686 27/167 Verifying : boost-system-1.76.0-4.fc35.i686 28/167 Verifying : boost-test-1.76.0-4.fc35.i686 29/167 Verifying : boost-thread-1.76.0-4.fc35.i686 30/167 Verifying : boost-timer-1.76.0-4.fc35.i686 31/167 Verifying : boost-type_erasure-1.76.0-4.fc35.i686 32/167 Verifying : boost-wave-1.76.0-4.fc35.i686 33/167 Verifying : cmake-filesystem-3.21.3-1.fc35.i686 34/167 Verifying : cpp-11.2.1-1.fc35.i686 35/167 Verifying : cryptsetup-libs-2.4.1-1.fc35.i686 36/167 Verifying : dbus-1:1.12.20-5.fc35.i686 37/167 Verifying : dbus-broker-29-4.fc35.i686 38/167 Verifying : dbus-common-1:1.12.20-5.fc35.noarch 39/167 Verifying : device-mapper-1.02.175-6.fc35.i686 40/167 Verifying : device-mapper-libs-1.02.175-6.fc35.i686 41/167 Verifying : expat-2.4.1-2.fc35.i686 42/167 Verifying : flexiblas-3.0.4-6.fc35.i686 43/167 Verifying : flexiblas-netlib-3.0.4-6.fc35.i686 44/167 Verifying : flexiblas-openblas-openmp-3.0.4-6.fc35.i686 45/167 Verifying : gc-8.0.4-6.fc35.i686 46/167 Verifying : gcc-11.2.1-1.fc35.i686 47/167 Verifying : gcc-c++-11.2.1-1.fc35.i686 48/167 Verifying : glibc-devel-2.34-7.fc35.i686 49/167 Verifying : glibc-headers-x86-2.34-7.fc35.noarch 50/167 Verifying : gperftools-devel-2.9.1-2.fc35.i686 51/167 Verifying : gperftools-libs-2.9.1-2.fc35.i686 52/167 Verifying : groff-base-1.22.4-8.fc35.i686 53/167 Verifying : guile22-2.2.7-3.fc35.i686 54/167 Verifying : iptables-legacy-libs-1.8.7-13.fc35.i686 55/167 Verifying : json-c-0.15-2.fc35.i686 56/167 Verifying : kernel-headers-5.14.9-300.fc35.i686 57/167 Verifying : kmod-libs-29-4.fc35.i686 58/167 Verifying : libargon2-20171227-7.fc35.i686 59/167 Verifying : libasan-11.2.1-1.fc35.i686 60/167 Verifying : libatomic-11.2.1-1.fc35.i686 61/167 Verifying : libcurl-devel-7.78.0-3.fc35.i686 62/167 Verifying : libgfortran-11.2.1-1.fc35.i686 63/167 Verifying : libibverbs-37.0-1.fc35.i686 64/167 Verifying : libicu-69.1-2.fc35.i686 65/167 Verifying : libicu-devel-69.1-2.fc35.i686 66/167 Verifying : libmpc-1.2.1-3.fc35.i686 67/167 Verifying : libnl3-3.5.0-8.fc35.i686 68/167 Verifying : libpcap-14:1.10.1-2.fc35.i686 69/167 Verifying : libpcap-devel-14:1.10.1-2.fc35.i686 70/167 Verifying : libquadmath-11.2.1-1.fc35.i686 71/167 Verifying : libquadmath-devel-11.2.1-1.fc35.i686 72/167 Verifying : libseccomp-2.5.0-5.fc35.i686 73/167 Verifying : libstdc++-devel-11.2.1-1.fc35.i686 74/167 Verifying : libstemmer-0-17.585svn.fc35.i686 75/167 Verifying : libstemmer-devel-0-17.585svn.fc35.i686 76/167 Verifying : libtool-ltdl-2.4.6-42.fc35.i686 77/167 Verifying : libubsan-11.2.1-1.fc35.i686 78/167 Verifying : libunwind-1.5.0-1.fc35.i686 79/167 Verifying : libxcrypt-devel-4.4.26-4.fc35.i686 80/167 Verifying : libyaml-0.2.5-6.fc35.i686 81/167 Verifying : make-1:4.3-6.fc35.i686 82/167 Verifying : mpdecimal-2.5.1-2.fc35.i686 83/167 Verifying : ncurses-6.2-8.20210508.fc35.i686 84/167 Verifying : openblas-0.3.17-2.fc35.i686 85/167 Verifying : openblas-openmp-0.3.17-2.fc35.i686 86/167 Verifying : openssl-devel-1:1.1.1l-2.fc35.i686 87/167 Verifying : pcre-cpp-8.45-1.fc35.i686 88/167 Verifying : pcre-devel-8.45-1.fc35.i686 89/167 Verifying : pcre-utf16-8.45-1.fc35.i686 90/167 Verifying : pcre-utf32-8.45-1.fc35.i686 91/167 Verifying : perl-Carp-1.52-478.fc35.noarch 92/167 Verifying : perl-Class-Struct-0.66-481.fc35.noarch 93/167 Verifying : perl-DynaLoader-1.50-481.fc35.i686 94/167 Verifying : perl-Encode-4:3.12-480.fc35.i686 95/167 Verifying : perl-Errno-1.33-481.fc35.i686 96/167 Verifying : perl-Exporter-5.76-479.fc35.noarch 97/167 Verifying : perl-Fcntl-1.14-481.fc35.i686 98/167 Verifying : perl-File-Basename-2.85-481.fc35.noarch 99/167 Verifying : perl-File-Path-2.18-478.fc35.noarch 100/167 Verifying : perl-File-Temp-1:0.231.100-478.fc35.noarch 101/167 Verifying : perl-File-stat-1.09-481.fc35.noarch 102/167 Verifying : perl-Getopt-Long-1:2.52-478.fc35.noarch 103/167 Verifying : perl-Getopt-Std-1.13-481.fc35.noarch 104/167 Verifying : perl-HTTP-Tiny-0.078-1.fc35.noarch 105/167 Verifying : perl-IO-1.46-481.fc35.i686 106/167 Verifying : perl-IPC-Open3-1.21-481.fc35.noarch 107/167 Verifying : perl-MIME-Base64-3.16-478.fc35.i686 108/167 Verifying : perl-POSIX-1.97-481.fc35.i686 109/167 Verifying : perl-PathTools-3.80-478.fc35.i686 110/167 Verifying : perl-Pod-Escapes-1:1.07-478.fc35.noarch 111/167 Verifying : perl-Pod-Perldoc-3.28.01-479.fc35.noarch 112/167 Verifying : perl-Pod-Simple-1:3.43-2.fc35.noarch 113/167 Verifying : perl-Pod-Usage-4:2.01-478.fc35.noarch 114/167 Verifying : perl-Scalar-List-Utils-5:1.56-461.fc35.i686 115/167 Verifying : perl-SelectSaver-1.02-481.fc35.noarch 116/167 Verifying : perl-Socket-4:2.032-2.fc35.i686 117/167 Verifying : perl-Storable-1:3.25-1.fc35.i686 118/167 Verifying : perl-Symbol-1.09-481.fc35.noarch 119/167 Verifying : perl-Term-ANSIColor-5.01-479.fc35.noarch 120/167 Verifying : perl-Term-Cap-1.17-478.fc35.noarch 121/167 Verifying : perl-Text-ParseWords-3.30-478.fc35.noarch 122/167 Verifying : perl-Text-Tabs+Wrap-2021.0814-1.fc35.noarch 123/167 Verifying : perl-Time-Local-2:1.300-478.fc35.noarch 124/167 Verifying : perl-constant-1.33-479.fc35.noarch 125/167 Verifying : perl-if-0.60.900-481.fc35.noarch 126/167 Verifying : perl-interpreter-4:5.34.0-481.fc35.i686 127/167 Verifying : perl-libs-4:5.34.0-481.fc35.i686 128/167 Verifying : perl-mro-1.25-481.fc35.i686 129/167 Verifying : perl-overload-1.33-481.fc35.noarch 130/167 Verifying : perl-overloading-0.02-481.fc35.noarch 131/167 Verifying : perl-parent-1:0.238-478.fc35.noarch 132/167 Verifying : perl-podlators-1:4.14-478.fc35.noarch 133/167 Verifying : perl-subs-1.04-481.fc35.noarch 134/167 Verifying : perl-vars-1.05-481.fc35.noarch 135/167 Verifying : pyproject-rpm-macros-0-47.fc35.noarch 136/167 Verifying : python-pip-wheel-21.2.3-2.fc35.noarch 137/167 Verifying : python-rpm-macros-3.10-8.fc35.noarch 138/167 Verifying : python-setuptools-wheel-57.4.0-1.fc35.noarch 139/167 Verifying : python3-3.10.0-1.fc35.i686 140/167 Verifying : python3-charset-normalizer-2.0.4-1.fc35.noarch 141/167 Verifying : python3-cheetah-3.2.4-8.fc35.i686 142/167 Verifying : python3-devel-3.10.0-1.fc35.i686 143/167 Verifying : python3-idna-3.2-1.fc35.noarch 144/167 Verifying : python3-libs-3.10.0-1.fc35.i686 145/167 Verifying : python3-numpy-1:1.21.1-1.fc35.i686 146/167 Verifying : python3-packaging-21.0-2.fc35.noarch 147/167 Verifying : python3-pyparsing-2.4.7-9.fc35.noarch 148/167 Verifying : python3-pysocks-1.7.1-11.fc35.noarch 149/167 Verifying : python3-pyyaml-5.4.1-4.fc35.i686 150/167 Verifying : python3-requests-2.26.0-1.fc35.noarch 151/167 Verifying : python3-rpm-generators-12-8.fc35.noarch 152/167 Verifying : python3-rpm-macros-3.10-8.fc35.noarch 153/167 Verifying : python3-scons-4.2.0-1.fc35.noarch 154/167 Verifying : python3-setuptools-57.4.0-1.fc35.noarch 155/167 Verifying : python3-six-1.16.0-4.fc35.noarch 156/167 Verifying : python3-urllib3-1.26.6-2.fc35.noarch 157/167 Verifying : snappy-1.1.9-3.fc35.i686 158/167 Verifying : snappy-devel-1.1.9-3.fc35.i686 159/167 Verifying : systemd-249.4-2.fc35.i686 160/167 Verifying : systemd-pam-249.4-2.fc35.i686 161/167 Verifying : systemd-rpm-macros-249.4-2.fc35.noarch 162/167 Verifying : valgrind-1:3.17.0-13.fc35.i686 163/167 Verifying : valgrind-devel-1:3.17.0-13.fc35.i686 164/167 Verifying : yaml-cpp-0.6.3-5.fc35.i686 165/167 Verifying : yaml-cpp-devel-0.6.3-5.fc35.i686 166/167 Verifying : zlib-devel-1.2.11-30.fc35.i686 167/167 Installed: acl-2.3.1-2.fc35.i686 annobin-docs-9.87-2.fc35.noarch annobin-plugin-gcc-9.87-2.fc35.i686 boost-1.76.0-4.fc35.i686 boost-atomic-1.76.0-4.fc35.i686 boost-chrono-1.76.0-4.fc35.i686 boost-container-1.76.0-4.fc35.i686 boost-context-1.76.0-4.fc35.i686 boost-contract-1.76.0-4.fc35.i686 boost-coroutine-1.76.0-4.fc35.i686 boost-date-time-1.76.0-4.fc35.i686 boost-devel-1.76.0-4.fc35.i686 boost-fiber-1.76.0-4.fc35.i686 boost-filesystem-1.76.0-4.fc35.i686 boost-graph-1.76.0-4.fc35.i686 boost-iostreams-1.76.0-4.fc35.i686 boost-locale-1.76.0-4.fc35.i686 boost-log-1.76.0-4.fc35.i686 boost-math-1.76.0-4.fc35.i686 boost-nowide-1.76.0-4.fc35.i686 boost-numpy3-1.76.0-4.fc35.i686 boost-program-options-1.76.0-4.fc35.i686 boost-python3-1.76.0-4.fc35.i686 boost-random-1.76.0-4.fc35.i686 boost-regex-1.76.0-4.fc35.i686 boost-serialization-1.76.0-4.fc35.i686 boost-stacktrace-1.76.0-4.fc35.i686 boost-system-1.76.0-4.fc35.i686 boost-test-1.76.0-4.fc35.i686 boost-thread-1.76.0-4.fc35.i686 boost-timer-1.76.0-4.fc35.i686 boost-type_erasure-1.76.0-4.fc35.i686 boost-wave-1.76.0-4.fc35.i686 cmake-filesystem-3.21.3-1.fc35.i686 cpp-11.2.1-1.fc35.i686 cryptsetup-libs-2.4.1-1.fc35.i686 dbus-1:1.12.20-5.fc35.i686 dbus-broker-29-4.fc35.i686 dbus-common-1:1.12.20-5.fc35.noarch device-mapper-1.02.175-6.fc35.i686 device-mapper-libs-1.02.175-6.fc35.i686 expat-2.4.1-2.fc35.i686 flexiblas-3.0.4-6.fc35.i686 flexiblas-netlib-3.0.4-6.fc35.i686 flexiblas-openblas-openmp-3.0.4-6.fc35.i686 gc-8.0.4-6.fc35.i686 gcc-11.2.1-1.fc35.i686 gcc-c++-11.2.1-1.fc35.i686 glibc-devel-2.34-7.fc35.i686 glibc-headers-x86-2.34-7.fc35.noarch gperftools-devel-2.9.1-2.fc35.i686 gperftools-libs-2.9.1-2.fc35.i686 groff-base-1.22.4-8.fc35.i686 guile22-2.2.7-3.fc35.i686 iptables-legacy-libs-1.8.7-13.fc35.i686 json-c-0.15-2.fc35.i686 kernel-headers-5.14.9-300.fc35.i686 kmod-libs-29-4.fc35.i686 libargon2-20171227-7.fc35.i686 libasan-11.2.1-1.fc35.i686 libatomic-11.2.1-1.fc35.i686 libcurl-devel-7.78.0-3.fc35.i686 libgfortran-11.2.1-1.fc35.i686 libibverbs-37.0-1.fc35.i686 libicu-69.1-2.fc35.i686 libicu-devel-69.1-2.fc35.i686 libmpc-1.2.1-3.fc35.i686 libnl3-3.5.0-8.fc35.i686 libpcap-14:1.10.1-2.fc35.i686 libpcap-devel-14:1.10.1-2.fc35.i686 libquadmath-11.2.1-1.fc35.i686 libquadmath-devel-11.2.1-1.fc35.i686 libseccomp-2.5.0-5.fc35.i686 libstdc++-devel-11.2.1-1.fc35.i686 libstemmer-0-17.585svn.fc35.i686 libstemmer-devel-0-17.585svn.fc35.i686 libtool-ltdl-2.4.6-42.fc35.i686 libubsan-11.2.1-1.fc35.i686 libunwind-1.5.0-1.fc35.i686 libxcrypt-devel-4.4.26-4.fc35.i686 libyaml-0.2.5-6.fc35.i686 make-1:4.3-6.fc35.i686 mpdecimal-2.5.1-2.fc35.i686 ncurses-6.2-8.20210508.fc35.i686 openblas-0.3.17-2.fc35.i686 openblas-openmp-0.3.17-2.fc35.i686 openssl-devel-1:1.1.1l-2.fc35.i686 pcre-cpp-8.45-1.fc35.i686 pcre-devel-8.45-1.fc35.i686 pcre-utf16-8.45-1.fc35.i686 pcre-utf32-8.45-1.fc35.i686 perl-Carp-1.52-478.fc35.noarch perl-Class-Struct-0.66-481.fc35.noarch perl-DynaLoader-1.50-481.fc35.i686 perl-Encode-4:3.12-480.fc35.i686 perl-Errno-1.33-481.fc35.i686 perl-Exporter-5.76-479.fc35.noarch perl-Fcntl-1.14-481.fc35.i686 perl-File-Basename-2.85-481.fc35.noarch perl-File-Path-2.18-478.fc35.noarch perl-File-Temp-1:0.231.100-478.fc35.noarch perl-File-stat-1.09-481.fc35.noarch perl-Getopt-Long-1:2.52-478.fc35.noarch perl-Getopt-Std-1.13-481.fc35.noarch perl-HTTP-Tiny-0.078-1.fc35.noarch perl-IO-1.46-481.fc35.i686 perl-IPC-Open3-1.21-481.fc35.noarch perl-MIME-Base64-3.16-478.fc35.i686 perl-POSIX-1.97-481.fc35.i686 perl-PathTools-3.80-478.fc35.i686 perl-Pod-Escapes-1:1.07-478.fc35.noarch perl-Pod-Perldoc-3.28.01-479.fc35.noarch perl-Pod-Simple-1:3.43-2.fc35.noarch perl-Pod-Usage-4:2.01-478.fc35.noarch perl-Scalar-List-Utils-5:1.56-461.fc35.i686 perl-SelectSaver-1.02-481.fc35.noarch perl-Socket-4:2.032-2.fc35.i686 perl-Storable-1:3.25-1.fc35.i686 perl-Symbol-1.09-481.fc35.noarch perl-Term-ANSIColor-5.01-479.fc35.noarch perl-Term-Cap-1.17-478.fc35.noarch perl-Text-ParseWords-3.30-478.fc35.noarch perl-Text-Tabs+Wrap-2021.0814-1.fc35.noarch perl-Time-Local-2:1.300-478.fc35.noarch perl-constant-1.33-479.fc35.noarch perl-if-0.60.900-481.fc35.noarch perl-interpreter-4:5.34.0-481.fc35.i686 perl-libs-4:5.34.0-481.fc35.i686 perl-mro-1.25-481.fc35.i686 perl-overload-1.33-481.fc35.noarch perl-overloading-0.02-481.fc35.noarch perl-parent-1:0.238-478.fc35.noarch perl-podlators-1:4.14-478.fc35.noarch perl-subs-1.04-481.fc35.noarch perl-vars-1.05-481.fc35.noarch pyproject-rpm-macros-0-47.fc35.noarch python-pip-wheel-21.2.3-2.fc35.noarch python-rpm-macros-3.10-8.fc35.noarch python-setuptools-wheel-57.4.0-1.fc35.noarch python3-3.10.0-1.fc35.i686 python3-charset-normalizer-2.0.4-1.fc35.noarch python3-cheetah-3.2.4-8.fc35.i686 python3-devel-3.10.0-1.fc35.i686 python3-idna-3.2-1.fc35.noarch python3-libs-3.10.0-1.fc35.i686 python3-numpy-1:1.21.1-1.fc35.i686 python3-packaging-21.0-2.fc35.noarch python3-pyparsing-2.4.7-9.fc35.noarch python3-pysocks-1.7.1-11.fc35.noarch python3-pyyaml-5.4.1-4.fc35.i686 python3-requests-2.26.0-1.fc35.noarch python3-rpm-generators-12-8.fc35.noarch python3-rpm-macros-3.10-8.fc35.noarch python3-scons-4.2.0-1.fc35.noarch python3-setuptools-57.4.0-1.fc35.noarch python3-six-1.16.0-4.fc35.noarch python3-urllib3-1.26.6-2.fc35.noarch snappy-1.1.9-3.fc35.i686 snappy-devel-1.1.9-3.fc35.i686 systemd-249.4-2.fc35.i686 systemd-pam-249.4-2.fc35.i686 systemd-rpm-macros-249.4-2.fc35.noarch valgrind-1:3.17.0-13.fc35.i686 valgrind-devel-1:3.17.0-13.fc35.i686 yaml-cpp-0.6.3-5.fc35.i686 yaml-cpp-devel-0.6.3-5.fc35.i686 zlib-devel-1.2.11-30.fc35.i686 Complete! Finish: build setup for mongodb-4.0.3-4.fc35.src.rpm Start: rpmbuild mongodb-4.0.3-4.fc35.src.rpm Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1557360000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fmwG7h + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mongo-r4.0.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/r4.0.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mongo-r4.0.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (inconsistent-tabs.patch): + echo 'Patch #0 (inconsistent-tabs.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file SConstruct Hunk #1 succeeded at 3411 (offset 99 lines). Patch #1 (python3-buildscripts-tests.patch): + echo 'Patch #1 (python3-buildscripts-tests.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file SConstruct patching file buildscripts/clang_format.py patching file buildscripts/cpplint.py patching file buildscripts/errorcodes.py patching file buildscripts/eslint.py patching file buildscripts/idl/idl/binder.py patching file buildscripts/idl/idl/bson.py patching file buildscripts/idl/idl/cpp_types.py patching file buildscripts/idl/idl/enum_types.py patching file buildscripts/idl/idl/generator.py patching file buildscripts/idl/idl/parser.py patching file buildscripts/idl/idl/struct_types.py patching file buildscripts/idl/idl/syntax.py patching file buildscripts/idl/tests/test_binder.py patching file buildscripts/linter/base.py patching file buildscripts/linter/git.py patching file buildscripts/linter/parallel.py patching file buildscripts/resmokeconfig/loggers/__init__.py patching file buildscripts/resmokeconfig/suites/__init__.py patching file buildscripts/resmokelib/config.py patching file buildscripts/resmokelib/core/process.py patching file buildscripts/resmokelib/logging/buildlogger.py patching file buildscripts/resmokelib/selector.py patching file buildscripts/resmokelib/testing/executor.py patching file buildscripts/resmokelib/testing/fixtures/interface.py patching file buildscripts/resmokelib/testing/fixtures/replicaset.py patching file buildscripts/resmokelib/testing/fixtures/shardedcluster.py patching file buildscripts/resmokelib/testing/hooks/interface.py patching file buildscripts/resmokelib/testing/suite.py patching file buildscripts/resmokelib/testing/summary.py patching file buildscripts/resmokelib/testing/testcases/interface.py patching file buildscripts/resmokelib/testing/testcases/jstest.py patching file buildscripts/resmokelib/utils/__init__.py patching file buildscripts/resmokelib/utils/archival.py patching file buildscripts/resmokelib/utils/globstar.py patching file buildscripts/resmokelib/utils/jscomment.py patching file buildscripts/resmokelib/utils/queue.py patching file buildscripts/utils.py patching file site_scons/libdeps.py patching file site_scons/mongo/__init__.py patching file site_scons/mongo/generators.py patching file site_scons/site_tools/dagger/__init__.py patching file site_scons/site_tools/dagger/dagger.py patching file site_scons/site_tools/dagger/graph.py patching file site_scons/site_tools/dagger/graph_consts.py patching file site_scons/site_tools/dagger/graph_test.py patching file site_scons/site_tools/distsrc.py patching file site_scons/site_tools/icecream.py patching file site_scons/site_tools/idl_tool.py patching file site_scons/site_tools/jstoh.py patching file site_scons/site_tools/mongo_benchmark.py patching file site_scons/site_tools/mongo_integrationtest.py patching file site_scons/site_tools/mongo_unittest.py patching file site_scons/site_tools/split_dwarf.py patching file site_scons/site_tools/thin_archive.py patching file site_scons/site_tools/xcode.py patching file src/mongo/SConscript patching file src/mongo/base/generate_error_codes.py patching file src/mongo/db/auth/generate_action_types.py patching file src/mongo/db/fts/generate_stop_words.py patching file src/mongo/db/fts/unicode/gen_diacritic_map.py patching file src/mongo/util/generate_icu_init_cpp.py Patch #20 (ppc64.patch): + echo 'Patch #20 (ppc64.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file SConstruct patching file src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/architecture.h patching file src/third_party/IntelRDFPMathLib20U1/SConscript patching file src/third_party/timelib-2018.01alpha1/parse_tz.c patching file src/third_party/wiredtiger/SConscript Patch #21 (32bit-support.patch): + echo 'Patch #21 (32bit-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/mongo/bson/bsonobjbuilder.h patching file src/mongo/db/storage/storage_options.cpp patching file src/mongo/platform/overflow_arithmetic.h Patch #23 (ppc64-arm-i386-mozjs-code.patch): + echo 'Patch #23 (ppc64-arm-i386-mozjs-code.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src0.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src1.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src10.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src11.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src12.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src13.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src14.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src15.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src16.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src17.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src18.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src19.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src2.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src20.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src21.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src22.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src23.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src24.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src25.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src26.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src27.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src28.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src29.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src3.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src30.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src31.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src32.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src33.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src34.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src35.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src4.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src5.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src6.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src7.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src8.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/Unified_cpp_js_src9.cpp patching file src/third_party/mozjs-45/platform/arm/linux/build/js-confdefs.h patching file src/third_party/mozjs-45/platform/arm/linux/include/js-config.h patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp patching file src/third_party/mozjs-45/platform/i386/linux/build/js-confdefs.h patching file src/third_party/mozjs-45/platform/i386/linux/include/js-config.h patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src0.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src1.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src10.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src11.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src12.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src13.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src14.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src15.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src16.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src17.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src18.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src19.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src2.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src20.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src21.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src22.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src23.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src24.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src25.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src26.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src27.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src28.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src29.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src3.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src30.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src31.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src32.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src33.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src4.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src5.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src6.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src7.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src8.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/Unified_cpp_js_src9.cpp patching file src/third_party/mozjs-45/platform/ppc64/linux/build/js-confdefs.h patching file src/third_party/mozjs-45/platform/ppc64/linux/include/js-config.h + sed -i -e '/extract\/js\/src\/jit\/ProcessExecutableMemory.cpp/d' src/third_party/mozjs-45/SConscript Patch #100 (mongodb-sailer-f33.patch): + echo 'Patch #100 (mongodb-sailer-f33.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .jnx --fuzz=0 patching file ./src/mongo/util/heap_profiler.cpp + sed -i 's|\(#ifdef TLS1_3_VERSION\)|#undef TLS1_3_VERSION\n\1|' src/mongo/util/net/ssl_manager_openssl.cpp + sed -i 's/\r//' README + sed -i -r 's|third_party/libstemmer_c/include/libstemmer.h|libstemmer.h|' src/mongo/db/fts/stemmer.h + sed -i -r 's|third_party/yaml-cpp-0.5.1/include/yaml-cpp/yaml.h|yaml-cpp/yaml.h|' src/mongo/util/options_parser/options_parser.cpp + sed -i -r 's|os.curdir(, "mongo")|"/usr/bin"\1|' buildscripts/resmokelib/config.py + sed -i -r 's|os.curdir(, "mongod")|"/usr/bin"\1|' buildscripts/resmokelib/config.py + sed -i -r 's|os.curdir(, "mongos")|"/usr/bin"\1|' buildscripts/resmokelib/config.py + sed -i -r 's|/data/db|/usr/share/mongodb-test/var|' buildscripts/resmokelib/config.py + sed -i -r 's|env python|env python3|' buildscripts/resmoke.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vRXOjt + umask 022 + cd /builddir/build/BUILD + cd mongo-r4.0.3 + export LANG=C.UTF-8 + LANG=C.UTF-8 + cat ++ echo -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ++ sed -e 's/-O. //' -e 's/-g //' + cat variables.list CCFLAGS="-flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection" LINKFLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory" VERBOSE=1 MONGO_VERSION="4.0.3" VARIANT_DIR="fedora" # On i686 -ffloat-store is requred to round in GranularityRounderPreferredNumbers # properly, without this: # -> build/opt/mongo/db/pipeline/granularity_rounder_test, # build/opt/mongo/db/pipeline/accumulator_test, build/opt/mongo/util/summation_test # and build/opt/mongo/db/pipeline/document_source_test unittests fail CCFLAGS+=" -ffloat-store" + cat ++ cat build-options + scons-3 core tools -j2 --use-system-pcre --use-system-boost --use-system-snappy --use-system-valgrind --use-system-zlib --use-system-stemmer --use-system-tcmalloc --use-system-yaml --mmapv1=on --wiredtiger=off --ssl --nostrip --disable-warnings-as-errors --variables-files=variables.list scons: Reading SConscript files ... Using variable customization file variables.list Mkdir("build/scons") scons version: 4.2.0 python version: 3 10 0 final 0 Checking whether the C compiler works... yes Checking whether the C++ compiler works... yes Checking that the C++ compiler can link a C++ program... yes Checking if C++ compiler "g++" is GCC... yes Checking if C compiler "gcc" is GCC... yes Detected a i386 processor Checking if target OS linux is supported by the toolchain... yes Checking if C compiler is GCC 5.3.0 or newer...yes Checking if C++ compiler is GCC 5.3.0 or newer...yes Checking if C compiler supports -Wno-unused-local-typedefs... yes Checking if C compiler supports -Wno-unused-function... yes Checking if C compiler supports -Wno-unused-private-field... no Checking if C compiler supports -Wno-deprecated-declarations... yes Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no Checking if C compiler supports -Wno-tautological-constant-compare... no Checking if C compiler supports -Wno-tautological-unsigned-zero-compare... no Checking if C compiler supports -Wno-tautological-unsigned-enum-zero-compare... no Checking if C compiler supports -Wno-unused-const-variable... yes Checking if C compiler supports -Wno-unused-but-set-variable... yes Checking if C compiler supports -Wno-missing-braces... yes Checking if C compiler supports -Wno-inconsistent-missing-override... no Checking if C compiler supports -Wno-potentially-evaluated-expression... no Checking if C++ compiler supports -Wpessimizing-move... yes Checking if C++ compiler supports -Wredundant-move... yes Checking if C++ compiler supports -Wno-maybe-uninitialized... yes Checking if C++ compiler supports -Wno-undefined-var-template... no Checking if C++ compiler supports -Wno-instantiation-after-specialization... no Checking if C compiler supports -Wno-unused-lambda-capture... no Checking if C compiler supports -Wno-exceptions... yes Checking -Wnon-virtual-dtor for false positives... no Checking if C compiler supports -fstack-protector-strong... yes Checking if we are using libstdc++... yes Checking if C++ compiler supports -std=c++14... yes Checking if C compiler supports -std=c11... yes WARNING: System versions of C++ libraries must be compiled with C++14 support Checking for C++14... yes Checking for memset_s... no Checking for C function strnlen()... yes Checking for libstdc++ 5.3.0 or better... yes Checking if we are on a POSIX system... yes Checking if the POSIX monotonic clock is supported... yes Checking off_t is 8 bytes... no Checking if linker supports -fuse-ld=gold... no Checking if linker supports -Wl,--build-id... yes Checking if linker supports -Wl,--hash-style=gnu... yes Checking if linker supports -Wl,-z,noexecstack... yes Checking if linker supports -Wl,--warn-execstack... no Checking if linker supports -Wl,-z,relro... yes Checking for glibc with non-broken _FORTIFY_SOURCE...yes Checking if C compiler supports -fno-builtin-memcmp... yes Checking for storage class thread_local yes Checking for C++14 std::enable_if_t support...yes Checking for C++14 std::make_unique support... yes Checking if pthread_setname_np is supported... yes Checking for SSLeay_version(0) in C library crypto... yes Checking for SSL_version(NULL) in C library ssl... yes Checking that linking to OpenSSL works...yes Checking whether FIPS_mode_set is declared... yes Checking whether d2i_ASN1_SEQUENCE_ANY is declared... yes Checking if SSL_[CTX_]_set_ecdh_auto is supported... yes Using SSL Provider: openssl Checking for curl_global_init(0) in C library curl... yes Checking for C library pcre... yes Checking for C library pcrecpp... yes Checking for C library snappy... yes Checking for C library z... yes Checking for C library stemmer... yes Checking for C library yaml-cpp... yes Checking for C++ header file boost/filesystem/operations.hpp... yes Checking if system boost version is 1.49 or newer...yes Checking for C++ library boost_filesystem-mt... no Checking for C++ library boost_filesystem... yes Checking for C++ library boost_program_options-mt... no Checking for C++ library boost_program_options... yes Checking for C++ library boost_system-mt... no Checking for C++ library boost_system... yes Checking for C++ library boost_iostreams-mt... no Checking for C++ library boost_iostreams... yes Checking for C library rt... yes Checking for C library dl... yes Checking for C++ header file execinfo.h... yes Checking whether backtrace is declared... yes Checking whether backtrace_symbols is declared... yes Checking whether backtrace_symbols_fd is declared... yes Checking for C library pcap... yes Checking 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 *** Run 'pip2 install --user regex' to speed up error code checking scons: done reading SConscript files. scons: Building targets ... /usr/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.err src/mongo/base/error_codes.tpl.h=build/fedora/mongo/base/error_codes.h src/mongo/base/error_codes.tpl.cpp=build/fedora/mongo/base/error_codes.cpp Creating 'build/fedora/mongo/config.h' g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/currunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/logical_session_id_gen.h --output build/fedora/mongo/db/logical_session_id_gen.cpp src/mongo/db/logical_session_id.idl g++ -o build/fedora/mongo/util/cmdline_utils/censor_cmdline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/cmdline_utils/censor_cmdline.cpp g++ -o build/fedora/mongo/rpc/legacy_reply.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/legacy_reply.cpp ar rcsTD build/fedora/mongo/util/cmdline_utils/libcmdline_utils.a build/fedora/mongo/util/cmdline_utils/censor_cmdline.o Skipping ranlib for thin archive build/fedora/mongo/util/cmdline_utils/libcmdline_utils.a g++ -o build/fedora/mongo/executor/network_interface_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/network_interface_factory.cpp /usr/bin/python3 src/mongo/db/auth/generate_action_types.py src/mongo/db/auth/action_types.txt build/fedora/mongo/db/auth/action_type.h build/fedora/mongo/db/auth/action_type.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/ops/write_ops_gen.h --output build/fedora/mongo/db/ops/write_ops_gen.cpp src/mongo/db/ops/write_ops.idl g++ -o build/fedora/mongo/db/commands/write_commands/write_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/write_commands/write_commands_common.cpp ar rcsTD build/fedora/mongo/executor/libnetwork_interface_factory.a build/fedora/mongo/executor/network_interface_factory.o Skipping ranlib for thin archive build/fedora/mongo/executor/libnetwork_interface_factory.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/ubidi_props.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/query/tailable_mode_gen.h --output build/fedora/mongo/db/query/tailable_mode_gen.cpp src/mongo/db/query/tailable_mode.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/generic_cursor_gen.h --output build/fedora/mongo/db/generic_cursor_gen.cpp src/mongo/db/generic_cursor.idl g++ -o build/fedora/mongo/s/commands/cluster_explain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_explain.cpp ar rcsTD build/fedora/mongo/db/commands/libwrite_commands_common.a build/fedora/mongo/db/commands/write_commands/write_commands_common.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libwrite_commands_common.a /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/catalog/type_chunk_base_gen.h --output build/fedora/mongo/s/catalog/type_chunk_base_gen.cpp src/mongo/s/catalog/type_chunk_base.idl g++ -o build/fedora/mongo/s/chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/chunk.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/s/commands/cluster_explain.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/s/commands/cluster_explain.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/net/private/socket_poll.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/private/socket_poll.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/net/sock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/sock.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/util/net/libsocket.a build/fedora/mongo/util/net/private/socket_poll.o build/fedora/mongo/util/net/sock.o Skipping ranlib for thin archive build/fedora/mongo/util/net/libsocket.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationweights.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnvhz.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/ucoleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/util/net/ssl_types.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/ssl_types.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/database_version_gen.h --output build/fedora/mongo/s/database_version_gen.cpp src/mongo/s/database_version.idl g++ -o build/fedora/mongo/s/commands/cluster_split_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_split_cmd.cpp g++ -o build/fedora/mongo/db/matcher/rewrite_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/rewrite_expr.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/rewrite_expr.h:34, from src/mongo/db/matcher/rewrite_expr.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/rewrite_expr.h:34, from src/mongo/db/matcher/rewrite_expr.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/rewrite_expr.h:34, from src/mongo/db/matcher/rewrite_expr.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_split_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_split_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/s/commands/cluster_split_cmd.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/rewrite_expr.h:35, from src/mongo/db/matcher/rewrite_expr.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/rewrite_expr.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/rewrite_expr.h:34, from src/mongo/db/matcher/rewrite_expr.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/s/commands/cluster_split_cmd.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(andMatch); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:87: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:108:25: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(orMatch); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:108: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:156:21: warning: redundant move in return statement [-Wredundant-move] 156 | return std::move(eqMatchExpr); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:156:21: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_split_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/client/sasl_client_authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/sasl_client_authenticate.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/client/parallel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/parallel.cpp g++ -o build/fedora/mongo/util/startup_test.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/startup_test.cpp g++ -o build/fedora/mongo/util/password_digest.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/password_digest.cpp g++ -o build/fedora/mongo/util/md5.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/md5.cpp ar rcsTD build/fedora/mongo/util/libmd5.a build/fedora/mongo/util/md5.o build/fedora/mongo/util/password_digest.o Skipping ranlib for thin archive build/fedora/mongo/util/libmd5.a g++ -o build/fedora/mongo/crypto/sha256_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/crypto/sha256_block.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/s/client/parallel.h:33, from src/mongo/s/client/parallel.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/crypto/libsha256_block.a build/fedora/mongo/crypto/sha256_block.o Skipping ranlib for thin archive build/fedora/mongo/crypto/libsha256_block.a g++ -o build/fedora/mongo/db/ftdc/block_compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/block_compressor.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/decimfmtimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/shim_intel_decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/shim_intel_decimal128.cpp g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_match_array_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/matcher/expression_array.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_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 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/matcher/expression_array.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:93:21: warning: redundant move in return statement [-Wredundant-move] 93 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:93:21: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/transport/message_compressor_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/message_compressor_registry.cpp g++ -o build/fedora/mongo/db/auth/privilege.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/privilege.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/transport/message_compressor_base.h:31, from src/mongo/transport/message_compressor_registry.h:33, from src/mongo/transport/message_compressor_registry.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/catalog/type_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_database.cpp gcc -o build/fedora/third_party/timelib-2018.01alpha1/parse_zoneinfo.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_zoneinfo.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/third_party/timelib-2018.01alpha1/parse_zoneinfo.c: In function 'create_zone_index': src/third_party/timelib-2018.01alpha1/parse_zoneinfo.c:118:47: warning: '__snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 118 | snprintf(fname, sizeof(fname), "%s%s%s", directory, TIMELIB_DIR_SEPARATOR, timezone /* canonical_tzname(timezone) */); | ^ In file included from /usr/include/stdio.h:888, from src/third_party/timelib-2018.01alpha1/timelib_private.h:70, from src/third_party/timelib-2018.01alpha1/parse_zoneinfo.c:27: /usr/include/bits/stdio2.h:71:10: note: '__snprintf_chk' output 2 or more bytes (assuming 4097) into a destination of size 4096 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/query/count_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/count_request.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/cstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/client/dbclientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/dbclientcursor.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclientcursor.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclientcursor.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/client/dbclientcursor.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclientcursor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclientcursor.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 g++ -o build/fedora/mongo/client/index_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/index_spec.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/client/dbclientcursor.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/client/dbclientcursor.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/client/dbclient.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/dbclient.cpp g++ -o build/fedora/mongo/db/keypattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/keypattern.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclient.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclient.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/write_ops/cluster_write.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/cluster_write.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient.cpp:48: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/s/write_ops/batch_write_exec.h:34, from src/mongo/s/write_ops/cluster_write.h:33, from src/mongo/s/write_ops/cluster_write.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/client/libclientdriver_minimal.a build/fedora/mongo/client/dbclient.o build/fedora/mongo/client/dbclientcursor.o build/fedora/mongo/client/index_spec.o Skipping ranlib for thin archive build/fedora/mongo/client/libclientdriver_minimal.a g++ -o build/fedora/mongo/db/matcher/expression_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_parser.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/query/async_results_merger_params_gen.h --output build/fedora/mongo/s/query/async_results_merger_params_gen.cpp src/mongo/s/query/async_results_merger_params.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/kill_sessions_gen.h --output build/fedora/mongo/db/kill_sessions_gen.cpp src/mongo/db/kill_sessions.idl g++ -o build/fedora/mongo/s/commands/kill_sessions_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/kill_sessions_remote.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/expression_parser.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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 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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/commands/kill_sessions_remote.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/commands/kill_sessions_remote.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/kill_sessions_gen.h:16, from src/mongo/db/kill_sessions.h:35, from src/mongo/s/commands/kill_sessions_remote.h:31, from src/mongo/s/commands/kill_sessions_remote.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/commands/kill_sessions_remote.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.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:49:25: warning: redundant move in return statement [-Wredundant-move] 49 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:49:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:56: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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:56: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:66:25: warning: redundant move in return statement [-Wredundant-move] 66 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:66: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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:56: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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:56: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:66:25: warning: redundant move in return statement [-Wredundant-move] 66 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:66: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:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:57: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:954:21: warning: redundant move in return statement [-Wredundant-move] 954 | return std::move(patternProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:954:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::function >(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel)>, mongo::StringMapTraits>': src/mongo/db/matcher/expression_parser.cpp:1835:9: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/commands/kill_sessions_remote.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::PathAcceptingKeyword, mongo::StringMapTraits>': src/mongo/db/matcher/expression_parser.cpp:1886:9: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::PathAcceptingKeyword; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::PathAcceptingKeyword; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::PathAcceptingKeyword; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::PathAcceptingKeyword; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/kill_sessions_gen.h:16, from src/mongo/db/kill_sessions.h:35, from src/mongo/s/commands/kill_sessions_remote.h:31, from src/mongo/s/commands/kill_sessions_remote.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:32, 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; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:116:38: required from here src/mongo/db/matcher/expression_arity.h:131:31: warning: redundant move in return statement [-Wredundant-move] 131 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:131:31: 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:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/commands/kill_sessions_remote.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/client/mongo_uri.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/mongo_uri.cpp g++ -o build/fedora/mongo/db/service_liaison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/service_liaison.cpp g++ -o build/fedora/mongo/transport/message_compressor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/message_compressor_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/transport/message_compressor_base.h:31, from src/mongo/transport/message_compressor_manager.h:33, from src/mongo/transport/message_compressor_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/transport/message_compressor_manager.cpp: In member function 'void mongo::MessageCompressorManager::clientBegin(mongo::BSONObjBuilder*)': src/mongo/transport/message_compressor_manager.cpp:204:21: warning: loop variable 'e' creates a copy from type 'const std::__cxx11::basic_string' [-Wrange-loop-construct] 204 | for (const auto e : _registry->getCompressorNames()) { | ^ src/mongo/transport/message_compressor_manager.cpp:204:21: note: use reference type to prevent copying 204 | for (const auto e : _registry->getCompressorNames()) { | ^ | & g++ -o build/fedora/mongo/util/dns_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/dns_query.cpp g++ -o build/fedora/mongo/s/catalog/type_changelog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_changelog.cpp ar rcsTD build/fedora/mongo/util/libdns_query.a build/fedora/mongo/util/dns_query.o Skipping ranlib for thin archive build/fedora/mongo/util/libdns_query.a g++ -o build/fedora/mongo/db/storage/encryption_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/encryption_hooks.cpp g++ -o build/fedora/mongo/db/auth/user.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/user.cpp ar rcsTD build/fedora/mongo/db/storage/libencryption_hooks.a build/fedora/mongo/db/storage/encryption_hooks.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libencryption_hooks.a g++ -o build/fedora/mongo/db/concurrency/lock_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/concurrency/lock_state.cpp src/mongo/db/concurrency/lock_state.cpp: In instantiation of 'boost::optional mongo::LockerImpl::getLockerInfo() const [with bool IsForMMAPV1 = true]': src/mongo/db/concurrency/lock_state.cpp:1135:16: required from here src/mongo/db/concurrency/lock_state.cpp:667:32: warning: redundant move in return statement [-Wredundant-move] 667 | return std::move(lockerInfo); | ^ src/mongo/db/concurrency/lock_state.cpp:667:32: note: remove 'std::move' call src/mongo/db/concurrency/lock_state.cpp: In instantiation of 'boost::optional mongo::LockerImpl::getLockerInfo() const [with bool IsForMMAPV1 = false]': src/mongo/db/concurrency/lock_state.cpp:1136:16: required from here src/mongo/db/concurrency/lock_state.cpp:667:32: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/concurrency/lock_state.cpp:667:32: note: remove 'std::move' call g++ -o build/fedora/mongo/rpc/command_request_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/command_request_builder.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/rpc/command_request_builder.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/rpc/command_request_builder.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/rpc/message.h:37, from src/mongo/rpc/command_request_builder.h:31, from src/mongo/rpc/command_request_builder.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/rpc/command_request_builder.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/rpc/command_request_builder.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/rpc/message.h:37, from src/mongo/rpc/command_request_builder.h:31, from src/mongo/rpc/command_request_builder.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/operation_context_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/operation_context_group.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/rpc/command_request_builder.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/update/compare_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/compare_node.cpp g++ -o build/fedora/mongo/db/ftdc/decompressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/decompressor.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/compare_node.h:31, from src/mongo/db/update/compare_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/compare_node.h:31, from src/mongo/db/update/compare_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/compare_node.h:31, from src/mongo/db/update/compare_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog_cache_loader.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/csr2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/startup_warnings_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/startup_warnings_common.cpp g++ -o build/fedora/mongo/util/fail_point_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/fail_point_registry.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/ftdc/ftdc_system_stats_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/ftdc_system_stats_linux.cpp g++ -o build/fedora/mongo/db/pipeline/accumulation_statement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulation_statement.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulation_statement.h:34, from src/mongo/db/pipeline/accumulation_statement.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulation_statement.h:34, from src/mongo/db/pipeline/accumulation_statement.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/accumulation_statement.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, boost::intrusive_ptr (*)(const boost::intrusive_ptr&), mongo::StringMapTraits>': src/mongo/db/pipeline/accumulation_statement.cpp:48:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr (*)(const boost::intrusive_ptr&); Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr (*)(const boost::intrusive_ptr&); Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr (*)(const boost::intrusive_ptr&); Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr (*)(const boost::intrusive_ptr&); Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/balancer_configuration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/balancer_configuration.cpp g++ -o build/fedora/mongo/db/pipeline/field_path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/field_path.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/uscript_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/util/net/hostandport.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/hostandport.cpp g++ -o build/fedora/mongo/s/commands/cluster_plan_cache_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_plan_cache_cmd.cpp g++ -o build/fedora/mongo/base/error_extra_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/error_extra_info.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_plan_cache_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_plan_cache_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/aggregation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/aggregation.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/catalog/database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/database.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/catalog/database.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/catalog/database.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database.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/fedora/mongo/db/auth/authorization_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authorization_session.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/catalog/database.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/simpleformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/commands/connection_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/connection_status.cpp g++ -o build/fedora/mongo/util/file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/file.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/connection_status.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/connection_status.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/connection_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/connection_status.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/connection_status.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/connection_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/ftdc/file_reader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/file_reader.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/connection_status.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/repl/repl_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_settings.cpp g++ -o build/fedora/mongo/db/repl/repl_settings_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_settings_init.cpp g++ -o build/fedora/mongo/transport/transport_layer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/transport_layer.cpp ar rcsTD build/fedora/mongo/db/repl/librepl_settings.a build/fedora/mongo/db/repl/repl_settings.o build/fedora/mongo/db/repl/repl_settings_init.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librepl_settings.a g++ -o build/fedora/mongo/transport/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/session.cpp g++ -o build/fedora/mongo/transport/service_entry_point_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/service_entry_point_utils.cpp g++ -o build/fedora/mongo/crypto/sha_block_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/crypto/sha_block_openssl.cpp ar rcsTD build/fedora/mongo/transport/libtransport_layer_common.a build/fedora/mongo/transport/service_entry_point_utils.o build/fedora/mongo/transport/session.o build/fedora/mongo/transport/transport_layer.o Skipping ranlib for thin archive build/fedora/mongo/transport/libtransport_layer_common.a g++ -o build/fedora/mongo/db/pipeline/document_source_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_skip.cpp ar rcsTD build/fedora/mongo/crypto/libsha_block_openssl.a build/fedora/mongo/crypto/sha_block_openssl.o Skipping ranlib for thin archive build/fedora/mongo/crypto/libsha_block_openssl.a g++ -o build/fedora/mongo/db/log_process_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/log_process_details.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/db/repl/repl_set_config.h:36, from src/mongo/db/log_process_details.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/summation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/summation.cpp ar rcsTD build/fedora/mongo/util/libsummation.a build/fedora/mongo/util/summation.o Skipping ranlib for thin archive build/fedora/mongo/util/libsummation.a g++ -o build/fedora/mongo/db/pipeline/accumulator_push.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_push.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_skip.h:31, from src/mongo/db/pipeline/document_source_skip.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_push.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_push.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_push.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/decimalformatpattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/timer.cpp g++ -o build/fedora/third_party/shim_timelib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/shim_timelib.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/i18n/ulocdata.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/commands/feature_compatibility_version_command_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/feature_compatibility_version_command_parser.cpp g++ -o build/fedora/mongo/base/simple_string_data_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/simple_string_data_comparator.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ g++ -o build/fedora/mongo/db/ftdc/ftdc_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/ftdc_mongos.cpp src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/feature_compatibility_version_command_parser.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/feature_compatibility_version_command_parser.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongos.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongos.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/db/ftdc/config.h:33, from src/mongo/db/ftdc/controller.h:37, from src/mongo/db/ftdc/ftdc_mongos.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongos.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongos.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/db/ftdc/config.h:33, from src/mongo/db/ftdc/controller.h:37, from src/mongo/db/ftdc/ftdc_mongos.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/shim_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_allocator.cpp ar rcsTD build/fedora/third_party/libshim_allocator.a build/fedora/third_party/shim_allocator.o Skipping ranlib for thin archive build/fedora/third_party/libshim_allocator.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/ntservice.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/ntservice.cpp g++ -o build/fedora/mongo/rpc/factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/factory.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongos.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/fts/fts_spec_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_spec_legacy.cpp g++ -o build/fedora/mongo/db/fts/fts_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_util.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/fts_spec.h:36, from src/mongo/db/fts/fts_spec_legacy.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::fts::ScoreHelperStruct, mongo::StringMapTraits>': src/mongo/db/fts/fts_spec_legacy.cpp:74:20: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/stemmer.cpp g++ -o build/fedora/mongo/db/fts/fts_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_spec.cpp g++ -o build/fedora/mongo/db/fts/fts_query_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_query_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/fts_spec.h:36, from src/mongo/db/fts/fts_spec.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/fts/fts_spec.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/fts/fts_spec.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/fts_spec.h:36, from src/mongo/db/fts/fts_spec.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_query.h:33, from src/mongo/db/fts/fts_query_impl.h:37, from src/mongo/db/fts/fts_query_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234: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:153:21: warning: redundant move in return statement [-Wredundant-move] 153 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_impl.cpp:153:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/fts_spec.h:36, from src/mongo/db/fts/fts_spec.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::fts::ScoreHelperStruct, mongo::StringMapTraits>': src/mongo/db/fts/fts_spec.cpp:196:20: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::fts::ScoreHelperStruct; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/fts_element_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_element_iterator.cpp 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_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/fts/fts_element_iterator.h:33, from src/mongo/db/fts/fts_element_iterator.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/fts_query_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_query_parser.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/fts/fts_spec.h:35, from src/mongo/db/fts/fts_spec.cpp:32: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61, inlined from 'mongo::BSONElement::String[abi:cxx11]() const' at src/mongo/bson/bsonelement.h:109:19: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/fts/fts_unicode_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_unicode_tokenizer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/stemmer.h:35, from src/mongo/db/fts/fts_unicode_tokenizer.h:34, from src/mongo/db/fts/fts_unicode_tokenizer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/fts_basic_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_basic_phrase_matcher.cpp g++ -o build/fedora/mongo/db/fts/fts_language.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_language.cpp g++ -o build/fedora/mongo/db/fts/stop_words.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/stop_words.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/stop_words.h:37, from src/mongo/db/fts/stop_words.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.cpp:46:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::set >, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.cpp:67:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /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/fedora/mongo/db/fts/stop_words_list.h build/fedora/mongo/db/fts/stop_words_list.cpp g++ -o build/fedora/mongo/db/fts/stop_words_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/fts/stop_words_list.cpp In file included from src/mongo/util/string_map.h:36, from build/fedora/mongo/db/fts/stop_words_list.h:5, from build/fedora/mongo/db/fts/stop_words_list.cpp:1: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::set >, mongo::StringMapTraits>': build/fedora/mongo/db/fts/stop_words_list.cpp:106:46: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::set >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/fts_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_matcher.cpp g++ -o build/fedora/mongo/db/fts/tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/tokenizer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/fts/fts_element_iterator.h:33, from src/mongo/db/fts/fts_matcher.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/fts_index_format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_index_format.cpp g++ -o build/fedora/mongo/db/fts/fts_unicode_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_unicode_phrase_matcher.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/db/bson/dotted_path_support.h:34, from src/mongo/db/fts/fts_index_format.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/fts_basic_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_basic_tokenizer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/stemmer.h:35, from src/mongo/db/fts/fts_basic_tokenizer.h:34, from src/mongo/db/fts/fts_basic_tokenizer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/s2/s2loop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2loop.cc ar rcsTD build/fedora/mongo/db/fts/libbase_fts.a build/fedora/mongo/db/fts/fts_index_format.o build/fedora/mongo/db/fts/fts_matcher.o build/fedora/mongo/db/fts/fts_query_impl.o build/fedora/mongo/db/fts/fts_query_parser.o build/fedora/mongo/db/fts/fts_spec.o build/fedora/mongo/db/fts/fts_spec_legacy.o build/fedora/mongo/db/fts/fts_language.o build/fedora/mongo/db/fts/fts_basic_phrase_matcher.o build/fedora/mongo/db/fts/fts_basic_tokenizer.o build/fedora/mongo/db/fts/fts_unicode_phrase_matcher.o build/fedora/mongo/db/fts/fts_unicode_tokenizer.o build/fedora/mongo/db/fts/fts_util.o build/fedora/mongo/db/fts/fts_element_iterator.o build/fedora/mongo/db/fts/stemmer.o build/fedora/mongo/db/fts/stop_words.o build/fedora/mongo/db/fts/stop_words_list.o build/fedora/mongo/db/fts/tokenizer.o Skipping ranlib for thin archive build/fedora/mongo/db/fts/libbase_fts.a g++ -o build/fedora/mongo/util/periodic_runner_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/periodic_runner_impl.cpp src/third_party/s2/s2loop.cc: In member function 'void S2Loop::Init(const std::vector >&)': src/third_party/s2/s2loop.cc:97:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 97 | memcpy(vertices_, &vertices[0], num_vertices_ * sizeof(vertices_[0])); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2loop.cc:16: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ src/third_party/s2/s2loop.cc: In constructor 'S2Loop::S2Loop(const S2Loop*)': src/third_party/s2/s2loop.cc:268:9: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 268 | memcpy(vertices_, src->vertices_, num_vertices_ * sizeof(vertices_[0])); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2loop.cc:16: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ src/mongo/util/periodic_runner_impl.cpp: In member function 'virtual std::unique_ptr mongo::PeriodicRunnerImpl::makeJob(mongo::PeriodicRunner::PeriodicJob)': src/mongo/util/periodic_runner_impl.cpp:58:21: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(handle); | ~~~~~~~~~^~~~~~~~ src/mongo/util/periodic_runner_impl.cpp:58:21: note: remove 'std::move' call ar rcsTD build/fedora/mongo/util/libperiodic_runner_impl.a build/fedora/mongo/util/periodic_runner_impl.o Skipping ranlib for thin archive build/fedora/mongo/util/libperiodic_runner_impl.a g++ -o build/fedora/mongo/s/sharding_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/sharding_task_executor.cpp g++ -o build/fedora/mongo/db/auth/authorization_manager_global.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authorization_manager_global.cpp ar rcsTD build/fedora/mongo/s/libsharding_task_executor.a build/fedora/mongo/s/sharding_task_executor.o Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_task_executor.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/precision.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/repl/replication_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_coordinator.cpp g++ -o build/fedora/mongo/db/repl/repl_client_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_client_info.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/repl/rollback_gen.h --output build/fedora/mongo/db/repl/rollback_gen.cpp src/mongo/db/repl/rollback.idl g++ -o build/fedora/mongo/db/repl/replication_process.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_process.cpp ar rcsTD build/fedora/mongo/db/repl/librepl_coordinator_interface.a build/fedora/mongo/db/repl/repl_client_info.o build/fedora/mongo/db/repl/replication_coordinator.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librepl_coordinator_interface.a g++ -o build/fedora/mongo/db/repl/optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/optime.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/repl/replication_process.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/repl/replication_process.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call g++ -o build/fedora/mongo/util/signal_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/signal_win32.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/repl/replication_process.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/signal_handlers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/signal_handlers.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/util/libsignal_handlers.a build/fedora/mongo/util/signal_handlers.o build/fedora/mongo/util/signal_win32.o Skipping ranlib for thin archive build/fedora/mongo/util/libsignal_handlers.a g++ -o build/fedora/mongo/db/auth/authz_session_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_session_external_state.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/replication_process.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/auth/authorization_session_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authorization_session_impl.cpp g++ -o build/fedora/mongo/db/auth/authorization_manager_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authorization_manager_impl.cpp g++ -o build/fedora/mongo/db/auth/user_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/user_set.cpp g++ -o build/fedora/mongo/db/auth/authz_manager_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_manager_external_state.cpp g++ -o build/fedora/mongo/db/update/modifier_table.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/modifier_table.cpp ar rcsTD build/fedora/mongo/db/auth/libauth_impl_internal.a build/fedora/mongo/db/auth/authorization_manager_impl.o build/fedora/mongo/db/auth/authorization_session_impl.o build/fedora/mongo/db/auth/authz_manager_external_state.o build/fedora/mongo/db/auth/authz_session_external_state.o build/fedora/mongo/db/auth/user_set.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauth_impl_internal.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_table.h:31, from src/mongo/db/update/modifier_table.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_table.h:31, from src/mongo/db/update/modifier_table.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_table.h:31, from src/mongo/db/update/modifier_table.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/auth/authz_session_external_state_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_session_external_state_s.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/auth/authz_manager_external_state_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_manager_external_state_s.cpp g++ -o build/fedora/mongo/db/auth/user_cache_invalidator_job.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/user_cache_invalidator_job.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_cache_invalidator_job.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_cache_invalidator_job.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/auth/user_cache_invalidator_job.h:28, from src/mongo/db/auth/user_cache_invalidator_job.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_cache_invalidator_job.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_cache_invalidator_job.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/auth/user_cache_invalidator_job.h:28, from src/mongo/db/auth/user_cache_invalidator_job.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_cache_invalidator_job.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/logger/ramlog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/ramlog.cpp ar rcsTD build/fedora/mongo/db/auth/libauthmongos.a build/fedora/mongo/db/auth/authz_manager_external_state_s.o build/fedora/mongo/db/auth/authz_session_external_state_s.o build/fedora/mongo/db/auth/user_cache_invalidator_job.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthmongos.a g++ -o build/fedora/mongo/db/auth/security_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/security_file.cpp g++ -o build/fedora/mongo/s/client/sharding_network_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/sharding_network_connection_hook.cpp ar rcsTD build/fedora/mongo/db/auth/libsecurity_file.a build/fedora/mongo/db/auth/security_file.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libsecurity_file.a /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/create_database_gen.h --output build/fedora/mongo/s/request_types/create_database_gen.cpp src/mongo/s/request_types/create_database.idl g++ -o build/fedora/mongo/s/commands/cluster_commands_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_commands_helpers.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/commands/cluster_commands_helpers.h:36, from src/mongo/s/commands/cluster_commands_helpers.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_commands_helpers.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_commands_helpers.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/commands/cluster_commands_helpers.h:36, from src/mongo/s/commands/cluster_commands_helpers.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_commands_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call g++ -o build/fedora/third_party/shim_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_snappy.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:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call ar rcsTD build/fedora/third_party/libshim_snappy.a build/fedora/third_party/shim_snappy.o Skipping ranlib for thin archive build/fedora/third_party/libshim_snappy.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_commands_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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/auth/address_restriction_gen.h --output build/fedora/mongo/db/auth/address_restriction_gen.cpp src/mongo/db/auth/address_restriction.idl g++ -o build/fedora/mongo/db/auth/address_restriction_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/auth/address_restriction_gen.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/commands/cluster_commands_helpers.h:36, from src/mongo/s/commands/cluster_commands_helpers.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/auth/address_restriction_gen.h:16, from build/fedora/mongo/db/auth/address_restriction_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_commands_helpers.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/auth/address_restriction_gen.h:16, from build/fedora/mongo/db/auth/address_restriction_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/repl_set_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_tag.cpp g++ -o build/fedora/mongo/db/repl/repl_set_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_config.cpp g++ -o build/fedora/mongo/db/repl/repl_set_heartbeat_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_heartbeat_response.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/db/repl/repl_set_config.h:36, from src/mongo/db/repl/repl_set_config.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/db/repl/member_state.h:40, from src/mongo/db/repl/repl_set_heartbeat_response.h:33, from src/mongo/db/repl/repl_set_heartbeat_response.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_config.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_config.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/db/repl/repl_set_config.h:36, from src/mongo/db/repl/repl_set_config.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_config.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_config.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/db/repl/repl_set_config.h:36, from src/mongo/db/repl/repl_set_config.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/db/repl/member_state.h:37, from src/mongo/db/repl/repl_set_heartbeat_response.h:33, from src/mongo/db/repl/repl_set_heartbeat_response.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61, inlined from 'mongo::BSONElement::String[abi:cxx11]() const' at src/mongo/bson/bsonelement.h:109:19: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/repl/member_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/member_config.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_config.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/member_config.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/member_config.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/db/repl/member_config.h:36, from src/mongo/db/repl/member_config.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/member_config.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/member_config.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/db/repl/member_config.h:36, from src/mongo/db/repl/member_config.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/member_config.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/last_vote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/last_vote.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/last_vote.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ g++ -o build/fedora/mongo/db/repl/repl_set_request_votes_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_request_votes_args.cpp In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/last_vote.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/last_vote.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/last_vote.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/last_vote.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/last_vote.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_request_votes_args.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_request_votes_args.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/repl/repl_set_request_votes_args.h:33, from src/mongo/db/repl/repl_set_request_votes_args.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_request_votes_args.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_request_votes_args.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/repl/repl_set_request_votes_args.h:33, from src/mongo/db/repl/repl_set_request_votes_args.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/last_vote.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/repl_set_html_summary.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_html_summary.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_request_votes_args.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/member_data.h:31, from src/mongo/db/repl/repl_set_html_summary.h:34, from src/mongo/db/repl/repl_set_html_summary.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/repl_set_heartbeat_args_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp g++ -o build/fedora/mongo/db/repl/repl_set_heartbeat_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_heartbeat_args.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.h:33, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args_v1.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args_v1.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.h:33, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.h:33, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.h:33, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/is_master_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/is_master_response.cpp g++ -o build/fedora/mongo/db/repl/update_position_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/update_position_args.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/data_range.h:30, from src/mongo/bson/oid.h:34, from src/mongo/db/repl/is_master_response.h:34, from src/mongo/db/repl/is_master_response.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/update_position_args.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/update_position_args.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/update_position_args.h:33, from src/mongo/db/repl/update_position_args.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/update_position_args.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/update_position_args.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/update_position_args.h:33, from src/mongo/db/repl/update_position_args.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/geo/geoparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/geo/geoparser.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/repl/update_position_args.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/owned_pointer_vector.h:30, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:31, from src/mongo/db/geo/geoparser.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/repl/libreplica_set_messages.a build/fedora/mongo/db/repl/is_master_response.o build/fedora/mongo/db/repl/member_config.o build/fedora/mongo/db/repl/repl_set_config.o build/fedora/mongo/db/repl/repl_set_heartbeat_args.o build/fedora/mongo/db/repl/repl_set_heartbeat_args_v1.o build/fedora/mongo/db/repl/repl_set_heartbeat_response.o build/fedora/mongo/db/repl/repl_set_html_summary.o build/fedora/mongo/db/repl/repl_set_request_votes_args.o build/fedora/mongo/db/repl/repl_set_tag.o build/fedora/mongo/db/repl/update_position_args.o build/fedora/mongo/db/repl/last_vote.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libreplica_set_messages.a g++ -o build/fedora/mongo/db/geo/geometry_container.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/geo/geometry_container.cpp g++ -o build/fedora/mongo/db/query/cursor_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/cursor_response.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/cursor_response.h:35, from src/mongo/db/query/cursor_response.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/geo/libgeoparser.a build/fedora/mongo/db/geo/geoparser.o build/fedora/mongo/db/geo/geometry_container.o Skipping ranlib for thin archive build/fedora/mongo/db/geo/libgeoparser.a g++ -o build/fedora/mongo/db/query/planner_access.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/planner_access.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/cursor_response.h:35, from src/mongo/db/query/cursor_response.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/planner_access.h:31, from src/mongo/db/query/planner_access.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/planner_access.h:31, from src/mongo/db/query/planner_access.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/planner_access.h:31, from src/mongo/db/query/planner_access.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_access.h:31, from src/mongo/db/query/planner_access.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_access.h:31, from src/mongo/db/query/planner_access.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/planner_access.h:31, from src/mongo/db/query/planner_access.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/cursor_response.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/query/planner_access.cpp:42: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h: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 /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/query/cursor_response.h:34, from src/mongo/db/query/cursor_response.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:178:21: warning: redundant move in return statement [-Wredundant-move] 178 | return std::move(csn); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:178:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_access.h:31, from src/mongo/db/query/planner_access.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/unisetspan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/bson/util/bson_extract.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/util/bson_extract.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/util/bson_extract.h:33, from src/mongo/bson/util/bson_extract.cpp:28: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/s/client/sharding_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/sharding_connection_hook.cpp g++ -o build/fedora/mongo/db/catalog/document_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/document_validation.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/refresh_sessions_gen.h --output build/fedora/mongo/db/refresh_sessions_gen.cpp src/mongo/db/refresh_sessions.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/commands/end_sessions_gen.h --output build/fedora/mongo/db/commands/end_sessions_gen.cpp src/mongo/db/commands/end_sessions.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/logical_session_cache_stats_gen.h --output build/fedora/mongo/db/logical_session_cache_stats_gen.cpp src/mongo/db/logical_session_cache_stats.idl ar rcsTD build/fedora/mongo/db/catalog/libdocument_validation.a build/fedora/mongo/db/catalog/document_validation.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libdocument_validation.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/commands/kill_all_sessions_by_pattern_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp g++ -o build/fedora/mongo/db/auth/role_graph_builtin_roles.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/role_graph_builtin_roles.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_by_pattern_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_by_pattern_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/write_ops/batch_downconvert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/batch_downconvert.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/s/write_ops/libcluster_write_op_conversion.a build/fedora/mongo/s/write_ops/batch_downconvert.o Skipping ranlib for thin archive build/fedora/mongo/s/write_ops/libcluster_write_op_conversion.a g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_extensions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_extensions.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/calendar.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 /usr/bin/python3 src/mongo/db/fts/unicode/gen_delimiter_list.py src/third_party/unicode-8.0.0/PropList.txt build/fedora/mongo/db/fts/unicode/codepoints_delimiter_list.cpp /builddir/build/BUILD/mongo-r4.0.3/src/mongo/db/fts/unicode/gen_delimiter_list.py:24: DeprecationWarning: 'U' mode is deprecated proplist_file = open(unicode_proplist_file, 'rU') g++ -o build/fedora/mongo/db/fts/unicode/codepoints_delimiter_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/fts/unicode/codepoints_delimiter_list.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/sortkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/ruleiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/s/commands/cluster_eval_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_eval_cmd.cpp g++ -o build/fedora/third_party/s2/strings/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/strings/stringprintf.cc g++ -o build/fedora/mongo/util/options_parser/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/value.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_eval_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_eval_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/role_graph.h:36, from src/mongo/s/commands/cluster_eval_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_eval_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_eval_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/role_graph.h:36, from src/mongo/s/commands/cluster_eval_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/icu4c-57.1/source/stubdata/stubdata.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/uset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/pipeline/cluster_aggregation_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/cluster_aggregation_planner.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_eval_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/cluster_aggregation_planner.h:31, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/cluster_aggregation_planner.h:31, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/cluster_aggregation_planner.h:31, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/cluster_aggregation_planner.h:31, from src/mongo/db/pipeline/cluster_aggregation_planner.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/db/pipeline/cluster_aggregation_planner.h:31, from src/mongo/db/pipeline/cluster_aggregation_planner.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/cluster_aggregation_planner.h:31, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/client/shard_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/shard_remote.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/s/client/shard_remote.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/s/client/shard_remote.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/client/shard.h:33, from src/mongo/s/client/shard_remote.h:33, from src/mongo/s/client/shard_remote.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/s/client/shard_remote.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278: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:36, from src/mongo/db/pipeline/cluster_aggregation_planner.h:31, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/s/client/shard_remote.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/client/shard.h:33, from src/mongo/s/client/shard_remote.h:33, from src/mongo/s/client/shard_remote.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/shim_yaml.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_yaml.cpp ar rcsTD build/fedora/third_party/libshim_yaml.a build/fedora/third_party/shim_yaml.o Skipping ranlib for thin archive build/fedora/third_party/libshim_yaml.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_io.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/s/client/shard_remote.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.h --output build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp src/mongo/s/request_types/clone_collection_options_from_primary_shard.idl g++ -o build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.h:16, from build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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 ar rcsTD build/fedora/mongo/s/client/libsharding_client.a build/fedora/mongo/s/client/shard_remote.o Skipping ranlib for thin archive build/fedora/mongo/s/client/libsharding_client.a g++ -o build/fedora/mongo/s/request_types/add_shard_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/add_shard_request_type.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.h:16, from build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.h --output build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp src/mongo/s/request_types/flush_routing_table_cache_updates.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/create_collection_gen.h --output build/fedora/mongo/s/request_types/create_collection_gen.cpp src/mongo/s/request_types/create_collection.idl g++ -o build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp g++ -o build/fedora/mongo/s/request_types/create_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/create_collection_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.h:16, from build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/create_collection_gen.h:16, from build/fedora/mongo/s/request_types/create_collection_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.h:16, from build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/create_collection_gen.h:16, from build/fedora/mongo/s/request_types/create_collection_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/catalog/type_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_shard.cpp g++ -o build/fedora/mongo/s/catalog/mongo_version_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/mongo_version_range.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/s/catalog/mongo_version_range.h:34, from src/mongo/s/catalog/mongo_version_range.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/s/catalog/type_lockpings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_lockpings.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/s/catalog/type_shard.h:35, from src/mongo/s/catalog/type_shard.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/move_primary_gen.h --output build/fedora/mongo/s/request_types/move_primary_gen.cpp src/mongo/s/request_types/move_primary.idl g++ -o build/fedora/mongo/s/request_types/move_primary_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/move_primary_gen.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/get_database_version_gen.h --output build/fedora/mongo/s/request_types/get_database_version_gen.cpp src/mongo/s/request_types/get_database_version.idl g++ -o build/fedora/mongo/s/request_types/get_database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/get_database_version_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/move_primary_gen.h:16, from build/fedora/mongo/s/request_types/move_primary_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/move_primary_gen.h:16, from build/fedora/mongo/s/request_types/move_primary_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/get_database_version_gen.h:16, from build/fedora/mongo/s/request_types/get_database_version_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/get_database_version_gen.h:16, from build/fedora/mongo/s/request_types/get_database_version_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/request_types/create_database_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/create_database_gen.cpp g++ -o build/fedora/mongo/s/request_types/update_zone_key_range_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/update_zone_key_range_request_type.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/create_database_gen.h:16, from build/fedora/mongo/s/request_types/create_database_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/create_database_gen.h:16, from build/fedora/mongo/s/request_types/create_database_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/clone_catalog_data_gen.h --output build/fedora/mongo/s/request_types/clone_catalog_data_gen.cpp src/mongo/s/request_types/clone_catalog_data.idl g++ -o build/fedora/mongo/s/request_types/clone_catalog_data_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/clone_catalog_data_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/clone_catalog_data_gen.h:16, from build/fedora/mongo/s/request_types/clone_catalog_data_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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 g++ -o build/fedora/mongo/s/catalog/type_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_collection.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/clone_catalog_data_gen.h:16, from build/fedora/mongo/s/request_types/clone_catalog_data_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/s/catalog/type_collection.h:34, from src/mongo/s/catalog/type_collection.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/request_types/move_chunk_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/move_chunk_request.cpp g++ -o build/fedora/mongo/s/request_types/migration_secondary_throttle_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/migration_secondary_throttle_options.cpp g++ -o build/fedora/mongo/s/catalog/type_locks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_locks.cpp g++ -o build/fedora/mongo/s/catalog/type_chunk_base_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/catalog/type_chunk_base_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/catalog/type_chunk_base_gen.h:16, from build/fedora/mongo/s/catalog/type_chunk_base_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/s/catalog/type_locks.h:34, from src/mongo/s/catalog/type_locks.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/catalog/type_chunk_base_gen.h:16, from build/fedora/mongo/s/catalog/type_chunk_base_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/request_types/merge_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/merge_chunk_request_type.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/shard_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/shard_id.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.h --output build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.cpp src/mongo/s/request_types/flush_database_cache_updates.idl g++ -o build/fedora/mongo/s/request_types/set_shard_version_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/set_shard_version_request.cpp g++ -o build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.h:16, from build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.h:16, from build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/catalog/type_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_shard_collection.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/s/catalog/type_shard_collection.h:34, from src/mongo/s/catalog/type_shard_collection.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/s/stale_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/stale_exception.cpp g++ -o build/fedora/mongo/s/database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/database_version_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/database_version_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/namespace_string.h:36, from src/mongo/s/stale_exception.h:31, from src/mongo/s/stale_exception.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/database_version_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/database_version_gen.h:16, from build/fedora/mongo/s/database_version_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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 g++ -o build/fedora/mongo/s/catalog/type_config_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_config_version.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/database_version_gen.h:16, from build/fedora/mongo/s/database_version_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/s/catalog/type_config_version.h:35, from src/mongo/s/catalog/type_config_version.cpp:29: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/database_version_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/request_types/split_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/split_chunk_request_type.cpp g++ -o build/fedora/mongo/s/request_types/remove_shard_from_zone_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/remove_shard_from_zone_request_type.cpp g++ -o build/fedora/mongo/s/cannot_implicitly_create_collection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/cannot_implicitly_create_collection_info.cpp g++ -o build/fedora/mongo/s/chunk_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/chunk_version.cpp g++ -o build/fedora/mongo/s/catalog/type_tags.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_tags.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/request_types/shard_collection_gen.h --output build/fedora/mongo/s/request_types/shard_collection_gen.cpp src/mongo/s/request_types/shard_collection.idl g++ -o build/fedora/mongo/s/request_types/shard_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/request_types/shard_collection_gen.cpp g++ -o build/fedora/mongo/s/catalog/type_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_mongos.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/shard_collection_gen.h:16, from build/fedora/mongo/s/request_types/shard_collection_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/request_types/shard_collection_gen.h:16, from build/fedora/mongo/s/request_types/shard_collection_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/s/catalog/type_mongos.h:35, from src/mongo/s/catalog/type_mongos.cpp:28: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/catalog/type_shard_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_shard_database.cpp g++ -o build/fedora/mongo/s/request_types/commit_chunk_migration_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/commit_chunk_migration_request_type.cpp g++ -o build/fedora/mongo/s/database_version_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/database_version_helpers.cpp g++ -o build/fedora/mongo/s/request_types/add_shard_to_zone_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/add_shard_to_zone_request_type.cpp g++ -o build/fedora/mongo/s/request_types/balance_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/request_types/balance_chunk_request_type.cpp g++ -o build/fedora/mongo/s/catalog/type_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/type_chunk.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucln_cmn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/currpinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/util/version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/version.cpp ar rcsTD build/fedora/mongo/s/libcommon_s.a build/fedora/mongo/s/catalog/mongo_version_range.o build/fedora/mongo/s/catalog/type_changelog.o build/fedora/mongo/s/catalog/type_chunk.o build/fedora/mongo/s/catalog/type_collection.o build/fedora/mongo/s/catalog/type_config_version.o build/fedora/mongo/s/catalog/type_database.o build/fedora/mongo/s/catalog/type_lockpings.o build/fedora/mongo/s/catalog/type_locks.o build/fedora/mongo/s/catalog/type_mongos.o build/fedora/mongo/s/catalog/type_shard_collection.o build/fedora/mongo/s/catalog/type_shard_database.o build/fedora/mongo/s/catalog/type_shard.o build/fedora/mongo/s/catalog/type_tags.o build/fedora/mongo/s/request_types/add_shard_request_type.o build/fedora/mongo/s/request_types/add_shard_to_zone_request_type.o build/fedora/mongo/s/request_types/balance_chunk_request_type.o build/fedora/mongo/s/request_types/commit_chunk_migration_request_type.o build/fedora/mongo/s/request_types/merge_chunk_request_type.o build/fedora/mongo/s/request_types/migration_secondary_throttle_options.o build/fedora/mongo/s/request_types/move_chunk_request.o build/fedora/mongo/s/request_types/remove_shard_from_zone_request_type.o build/fedora/mongo/s/request_types/set_shard_version_request.o build/fedora/mongo/s/request_types/split_chunk_request_type.o build/fedora/mongo/s/request_types/update_zone_key_range_request_type.o build/fedora/mongo/s/cannot_implicitly_create_collection_info.o build/fedora/mongo/s/chunk_version.o build/fedora/mongo/s/database_version_helpers.o build/fedora/mongo/s/shard_id.o build/fedora/mongo/s/stale_exception.o build/fedora/mongo/s/catalog/type_chunk_base_gen.o build/fedora/mongo/s/database_version_gen.o build/fedora/mongo/s/request_types/clone_catalog_data_gen.o build/fedora/mongo/s/request_types/create_collection_gen.o build/fedora/mongo/s/request_types/create_database_gen.o build/fedora/mongo/s/request_types/flush_database_cache_updates_gen.o build/fedora/mongo/s/request_types/flush_routing_table_cache_updates_gen.o build/fedora/mongo/s/request_types/get_database_version_gen.o build/fedora/mongo/s/request_types/move_primary_gen.o build/fedora/mongo/s/request_types/shard_collection_gen.o build/fedora/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.o Skipping ranlib for thin archive build/fedora/mongo/s/libcommon_s.a g++ -o build/fedora/mongo/db/global_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/global_settings.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/csdetect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/keys_collection_document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/keys_collection_document.cpp g++ -o build/fedora/mongo/util/progress_meter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/progress_meter.cpp g++ -o build/fedora/mongo/util/thread_safe_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/thread_safe_string.cpp ar rcsTD build/fedora/mongo/util/libprogress_meter.a build/fedora/mongo/util/progress_meter.o build/fedora/mongo/util/thread_safe_string.o Skipping ranlib for thin archive build/fedora/mongo/util/libprogress_meter.a g++ -o build/fedora/mongo/bson/simple_bsonelement_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/simple_bsonelement_comparator.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/uts46.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/util/winutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/winutil.cpp ar rcsTD build/fedora/mongo/util/libwinutil.a build/fedora/mongo/util/winutil.o Skipping ranlib for thin archive build/fedora/mongo/util/libwinutil.a g++ -o build/fedora/mongo/rpc/command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/command_request.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/sharedobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/client/connpool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/connpool.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/connpool.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/client/replica_set_monitor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/replica_set_monitor_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/executor/task_executor.h:39, from src/mongo/client/replica_set_monitor_manager.h:35, from src/mongo/client/replica_set_monitor_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/client/dbclient_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/dbclient_connection.cpp g++ -o build/fedora/mongo/client/connection_string_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/connection_string_connect.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient_connection.cpp:50: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient_connection.cpp:50: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclient_connection.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient_connection.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient_connection.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclient_connection.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:69:33: warning: redundant move in return statement [-Wredundant-move] 69 | return std::move(c); | ~~~~~~~~~^~~ src/mongo/client/connection_string_connect.cpp:69:33: note: remove 'std::move' call src/mongo/client/connection_string_connect.cpp:82:29: warning: redundant move in return statement [-Wredundant-move] 82 | return std::move(set); | ~~~~~~~~~^~~~~ src/mongo/client/connection_string_connect.cpp:82:29: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/client/global_conn_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/global_conn_pool.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/client/dbclient_connection.cpp:50: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/global_conn_pool.h:31, from src/mongo/client/global_conn_pool.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/client/replica_set_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/replica_set_monitor.cpp g++ -o build/fedora/mongo/client/dbclient_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/dbclient_rs.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/client/mongo_uri.h:38, from src/mongo/client/replica_set_monitor.h:38, from src/mongo/client/replica_set_monitor.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclient_rs.h:34, from src/mongo/client/dbclient_rs.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/client/mongo_uri_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/client/mongo_uri_connect.cpp g++ -o build/fedora/mongo/db/initialize_operation_session_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/initialize_operation_session_info.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/client/mongo_uri.h:36, from src/mongo/client/mongo_uri_connect.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/commands/end_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/commands/end_sessions_gen.cpp ar rcsTD build/fedora/mongo/client/libclientdriver_network.a build/fedora/mongo/client/connection_string_connect.o build/fedora/mongo/client/mongo_uri_connect.o build/fedora/mongo/client/connpool.o build/fedora/mongo/client/dbclient_connection.o build/fedora/mongo/client/dbclient_rs.o build/fedora/mongo/client/global_conn_pool.o build/fedora/mongo/client/replica_set_monitor.o build/fedora/mongo/client/replica_set_monitor_manager.o Skipping ranlib for thin archive build/fedora/mongo/client/libclientdriver_network.a g++ -o build/fedora/mongo/db/logical_session_cache_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_session_cache_impl.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/commands/end_sessions_gen.h:16, from build/fedora/mongo/db/commands/end_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/commands/end_sessions_gen.h:16, from build/fedora/mongo/db/commands/end_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/logical_session_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_session_server_status_section.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/create_indexes_gen.h --output build/fedora/mongo/db/create_indexes_gen.cpp src/mongo/db/create_indexes.idl g++ -o build/fedora/mongo/db/create_indexes_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/create_indexes_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/logical_session_server_status_section.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/logical_session_server_status_section.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/logical_session_server_status_section.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/logical_session_server_status_section.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/logical_session_server_status_section.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/create_indexes_gen.h:16, from build/fedora/mongo/db/create_indexes_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/logical_session_server_status_section.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/create_indexes_gen.h:16, from build/fedora/mongo/db/create_indexes_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/logical_session_server_status_section.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/liblogical_session_cache_impl.a build/fedora/mongo/db/initialize_operation_session_info.o build/fedora/mongo/db/logical_session_cache_impl.o build/fedora/mongo/db/logical_session_server_status_section.o build/fedora/mongo/db/commands/end_sessions_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_session_cache_impl.a g++ -o build/fedora/mongo/db/sessions_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/sessions_collection.cpp g++ -o build/fedora/mongo/db/pipeline/accumulator_last.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_last.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_last.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_last.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_last.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libsessions_collection.a build/fedora/mongo/db/sessions_collection.o build/fedora/mongo/db/create_indexes_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/libsessions_collection.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/sharding_egress_metadata_hook_for_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/sharding_egress_metadata_hook_for_mongos.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/anytrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/bson/dotted_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/bson/dotted_path_support.cpp ar rcsTD build/fedora/mongo/s/libsharding_egress_metadata_hook_for_mongos.a build/fedora/mongo/s/sharding_egress_metadata_hook_for_mongos.o Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_egress_metadata_hook_for_mongos.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/db/bson/libdotted_path_support.a build/fedora/mongo/db/bson/dotted_path_support.o Skipping ranlib for thin archive build/fedora/mongo/db/bson/libdotted_path_support.a g++ -o build/fedora/mongo/db/key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/key_generator.cpp g++ -o build/fedora/mongo/db/keys_collection_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/keys_collection_manager.cpp g++ -o build/fedora/mongo/db/keys_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/keys_collection_cache.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/keys_collection_manager.h:33, from src/mongo/db/keys_collection_manager.cpp:32: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< , std::allocator > >(std::__cxx11::basic_string, std::allocator > const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::KeysCollectionManager::startMonitoring(mongo::ServiceContext*)' at src/mongo/db/keys_collection_manager.cpp:158:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 492] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/query/index_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/index_tag.cpp ar rcsTD build/fedora/mongo/db/libkeys_collection_manager.a build/fedora/mongo/db/keys_collection_manager.o build/fedora/mongo/db/keys_collection_cache.o build/fedora/mongo/db/key_generator.o Skipping ranlib for thin archive build/fedora/mongo/db/libkeys_collection_manager.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/index_tag.h:35, from src/mongo/db/query/index_tag.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/index_tag.h:35, from src/mongo/db/query/index_tag.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/query/index_tag.h:34, from src/mongo/db/query/index_tag.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/query/index_tag.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 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: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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u7.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/servslkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 Creating 'build/fedora/mongo/util/version_constants.h' g++ -o build/fedora/mongo/util/version_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/version_impl.cpp g++ -o build/fedora/mongo/db/logical_session_id_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_session_id_helpers.cpp ar rcsTD build/fedora/mongo/util/libversion_impl.a build/fedora/mongo/util/version_impl.o Skipping ranlib for thin archive build/fedora/mongo/util/libversion_impl.a g++ -o build/fedora/mongo/base/global_initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/global_initializer.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/scripting/utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/utils.cpp ar rcsTD build/fedora/mongo/db/liblogical_session_id_helpers.a build/fedora/mongo/db/logical_session_id_helpers.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_session_id_helpers.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/client.cpp g++ -o build/fedora/mongo/db/server_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/server_options_init.cpp ar rcsTD build/fedora/mongo/db/libstartup_warnings_common.a build/fedora/mongo/db/startup_warnings_common.o Skipping ranlib for thin archive build/fedora/mongo/db/libstartup_warnings_common.a g++ -o build/fedora/third_party/s2/util/coding/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/util/coding/varint.cc g++ -o build/fedora/third_party/icu4c-57.1/source/common/servlk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/rpc/legacy_reply_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/legacy_reply_builder.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/repl/oplog_entry_gen.h --output build/fedora/mongo/db/repl/oplog_entry_gen.cpp src/mongo/db/repl/oplog_entry.idl g++ -o build/fedora/mongo/db/repl/oplog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_entry.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/rpc/legacy_reply_builder.h:33, from src/mongo/rpc/legacy_reply_builder.cpp:31: In function 'memcpy', inlined from 'mongo::DataType::Handler::unsafeStore(int const&, char*, unsigned int*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned int*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned int)mongo::DataView&' at src/mongo/base/data_view.h:83:30, inlined from 'mongo::QueryResult::View::setResultFlags(int)' at src/mongo/db/dbmessage.h:181:41, inlined from 'mongo::QueryResult::View::setResultFlagsToOk()' at src/mongo/db/dbmessage.h:185:23, inlined from 'mongo::rpc::LegacyReplyBuilder::done()' at src/mongo/rpc/legacy_reply_builder.cpp:131:30: /usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::DataType::Handler::unsafeStore(int const&, char*, unsigned int*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned int*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned int)mongo::DataView&' at src/mongo/base/data_view.h:83:30, inlined from 'mongo::QueryResult::View::setResultFlags(int)' at src/mongo/db/dbmessage.h:181:41, inlined from 'mongo::rpc::LegacyReplyBuilder::done()' at src/mongo/rpc/legacy_reply_builder.cpp:129:26: /usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/rpc/liblegacy_reply.a build/fedora/mongo/rpc/legacy_reply.o build/fedora/mongo/rpc/legacy_reply_builder.o Skipping ranlib for thin archive build/fedora/mongo/rpc/liblegacy_reply.a g++ -o build/fedora/mongo/db/repl/oplog_entry_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/repl/oplog_entry_gen.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/refresh_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/refresh_sessions_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/oplog_entry_gen.h:16, from build/fedora/mongo/db/repl/oplog_entry_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/oplog_entry_gen.h:16, from build/fedora/mongo/db/repl/oplog_entry_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/refresh_sessions_gen.h:16, from build/fedora/mongo/db/refresh_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/refresh_sessions_gen.h:16, from build/fedora/mongo/db/refresh_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/liboplog_entry.a build/fedora/mongo/db/repl/oplog_entry.o build/fedora/mongo/db/repl/oplog_entry_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_entry.a g++ -o build/fedora/mongo/db/logical_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_session_id.cpp g++ -o build/fedora/mongo/db/logical_session_id_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/logical_session_id_gen.cpp g++ -o build/fedora/mongo/db/curop_failpoint_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/curop_failpoint_helpers.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from build/fedora/mongo/db/logical_session_id_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from build/fedora/mongo/db/logical_session_id_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_helpers.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_helpers.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/curop_failpoint_helpers.h:29, from src/mongo/db/curop_failpoint_helpers.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/curop_failpoint_helpers.h:29, from src/mongo/db/curop_failpoint_helpers.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_failpoint_helpers.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libcurop_failpoint_helpers.a build/fedora/mongo/db/curop_failpoint_helpers.o Skipping ranlib for thin archive build/fedora/mongo/db/libcurop_failpoint_helpers.a g++ -o build/fedora/mongo/db/repl/read_concern_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/read_concern_args.cpp ar rcsTD build/fedora/mongo/db/liblogical_session_id.a build/fedora/mongo/db/logical_session_id.o build/fedora/mongo/db/logical_session_id_gen.o build/fedora/mongo/db/refresh_sessions_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_session_id.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/wintz.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/logical_session_cache_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/logical_session_cache_stats_gen.cpp ar rcsTD build/fedora/mongo/db/repl/libread_concern_args.a build/fedora/mongo/db/repl/read_concern_args.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libread_concern_args.a g++ -o build/fedora/mongo/db/logical_session_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_session_cache.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_cache_stats_gen.h:16, from build/fedora/mongo/db/logical_session_cache_stats_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_cache_stats_gen.h:16, from build/fedora/mongo/db/logical_session_cache_stats_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/operation_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/operation_context.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/liblogical_session_cache.a build/fedora/mongo/db/logical_session_cache.o build/fedora/mongo/db/logical_session_cache_stats_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_session_cache.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/pipeline/accumulator_sum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_sum.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_sum.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_sum.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_sum.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/accumulator_merge_objects.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_merge_objects.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/accumulator_avg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_avg.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_avg.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_avg.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_avg.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/accumulator_add_to_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_add_to_set.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/accumulator_min_max.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_min_max.cpp g++ -o build/fedora/mongo/db/pipeline/accumulator_std_dev.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_std_dev.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_min_max.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_min_max.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_min_max.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_std_dev.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_std_dev.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_std_dev.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/accumulator_first.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/accumulator_first.cpp g++ -o build/fedora/mongo/s/commands/cluster_db_stats_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_db_stats_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_first.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulator_first.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/db/pipeline/accumulator.h:38, from src/mongo/db/pipeline/accumulator_first.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_db_stats_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_db_stats_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/pipeline/libaccumulator.a build/fedora/mongo/db/pipeline/accumulation_statement.o build/fedora/mongo/db/pipeline/accumulator_add_to_set.o build/fedora/mongo/db/pipeline/accumulator_avg.o build/fedora/mongo/db/pipeline/accumulator_first.o build/fedora/mongo/db/pipeline/accumulator_last.o build/fedora/mongo/db/pipeline/accumulator_min_max.o build/fedora/mongo/db/pipeline/accumulator_push.o build/fedora/mongo/db/pipeline/accumulator_std_dev.o build/fedora/mongo/db/pipeline/accumulator_sum.o build/fedora/mongo/db/pipeline/accumulator_merge_objects.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libaccumulator.a g++ -o build/fedora/mongo/db/query/query_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/query_settings.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/query_settings.h:37, from src/mongo/db/query/query_settings.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/query_settings.h:37, from src/mongo/db/query/query_settings.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/query_settings.h:35, from src/mongo/db/query/query_settings.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, 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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, 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: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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/query_settings.h:35, from src/mongo/db/query/query_settings.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_explain_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, 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:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_drop_database_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_drop_database_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/s/commands/cluster_explain_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/s/commands/cluster_explain_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_database_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_database_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_explain_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/client/dbclientinterface.h:33, from src/mongo/s/commands/cluster_explain_cmd.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/third_party/s2/s2cellunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2cellunion.cc In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/client/shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/shard.cpp g++ -o build/fedora/mongo/db/views/view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/views/view_catalog.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/views/view_catalog.h:40, from src/mongo/db/views/view_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/views/view_catalog.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/views/view_catalog.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/views/view_catalog.h:40, from src/mongo/db/views/view_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/views/view_catalog.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/views/view_catalog.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/views/view_catalog.h:40, from src/mongo/db/views/view_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/s/client/libshard_interface.a build/fedora/mongo/s/client/shard.o Skipping ranlib for thin archive build/fedora/mongo/s/client/libshard_interface.a g++ -o build/fedora/third_party/s2/strings/split.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/strings/split.cc In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/views/view_catalog.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/s2/strings/strutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/strings/strutil.cc ar rcsTD build/fedora/third_party/s2/strings/libstrings.a build/fedora/third_party/s2/strings/split.o build/fedora/third_party/s2/strings/stringprintf.o build/fedora/third_party/s2/strings/strutil.o Skipping ranlib for thin archive build/fedora/third_party/s2/strings/libstrings.a g++ -o build/fedora/mongo/db/ftdc/file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/file_manager.cpp g++ -o build/fedora/mongo/db/auth/sasl_scram_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/sasl_scram_server_conversation.cpp g++ -o build/fedora/mongo/db/auth/sasl_plain_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/sasl_plain_server_conversation.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.h:32, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.h:32, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/crypto/mechanism_scram.h:36, from src/mongo/db/auth/sasl_scram_server_conversation.h:31, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.h:32, from src/mongo/db/auth/sasl_scram_server_conversation.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.h:32, from src/mongo/db/auth/sasl_scram_server_conversation.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.h:31, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.h:31, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/crypto/sha_block.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.h:31, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/crypto/mechanism_scram.h:36, from src/mongo/db/auth/sasl_scram_server_conversation.h:31, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.h:31, from src/mongo/db/auth/sasl_plain_server_conversation.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.h:31, from src/mongo/db/auth/sasl_plain_server_conversation.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/crypto/sha_block.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:32, from src/mongo/db/auth/sasl_plain_server_conversation.h:31, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_scram_server_conversation.h:32, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_policies.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.h:31, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/auth/sasl_mechanism_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/sasl_mechanism_registry.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/logical_session_cache_factory_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_session_cache_factory_mongos.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_registry.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_registry.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/sasl_mechanism_registry.h:36, from src/mongo/db/auth/sasl_mechanism_registry.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_registry.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_registry.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/sasl_mechanism_registry.h:36, from src/mongo/db/auth/sasl_mechanism_registry.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/reldtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/auth/resource_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/resource_pattern.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/sasl_mechanism_registry.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/auth/sasl_mechanism_registry.h:35, from src/mongo/db/auth/sasl_mechanism_registry.cpp:32: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/smpdtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/base/data_type_string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/data_type_string_data.cpp ar rcsTD build/fedora/mongo/db/auth/libsaslauth.a build/fedora/mongo/db/auth/sasl_mechanism_registry.o build/fedora/mongo/db/auth/sasl_plain_server_conversation.o build/fedora/mongo/db/auth/sasl_scram_server_conversation.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libsaslauth.a g++ -o build/fedora/mongo/util/net/cidr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/cidr.cpp g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_object_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:81:21: warning: redundant move in return statement [-Wredundant-move] 81 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:81:21: note: remove 'std::move' call g++ -o build/fedora/mongo/db/matcher/matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/matcher.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/common/utf_impl.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/query/collation/collator_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/collation/collator_interface.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/matcher.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/matcher.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/matcher/matcher.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/matcher.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/matcher/matcher.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/ucol_res.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/crypto/sha1_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/crypto/sha1_block.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/granularity_rounder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/granularity_rounder.cpp g++ -o build/fedora/mongo/util/secure_compare_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/secure_compare_memory.cpp ar rcsTD build/fedora/mongo/util/libsecure_compare_memory.a build/fedora/mongo/util/secure_compare_memory.o Skipping ranlib for thin archive build/fedora/mongo/util/libsecure_compare_memory.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/client/shard_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/shard_connection.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/granularity_rounder.h:35, from src/mongo/db/pipeline/granularity_rounder.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/granularity_rounder.h:35, from src/mongo/db/pipeline/granularity_rounder.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/pipeline/granularity_rounder.h:34, from src/mongo/db/pipeline/granularity_rounder.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::function(const boost::intrusive_ptr&)>, mongo::StringMapTraits>': src/mongo/db/pipeline/granularity_rounder.cpp:41:20: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/client/version_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/version_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclient_rs.h:34, from src/mongo/s/client/version_manager.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/async_requests_sender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/async_requests_sender.cpp ar rcsTD build/fedora/mongo/s/libsharding_legacy_api.a build/fedora/mongo/s/client/parallel.o build/fedora/mongo/s/client/shard_connection.o build/fedora/mongo/s/client/version_manager.o Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_legacy_api.a g++ -o build/fedora/mongo/s/commands/cluster_killcursors_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_killcursors_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/s/commands/cluster_killcursors_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/s/commands/cluster_killcursors_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_coll_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_coll_stats.cpp g++ -o build/fedora/mongo/s/commands/pipeline_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/pipeline_s.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/mongo_process_common.h:33, from src/mongo/s/commands/pipeline_s.h:31, from src/mongo/s/commands/pipeline_s.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/mongo_process_interface.h:42, from src/mongo/db/pipeline/mongo_process_common.h:34, from src/mongo/s/commands/pipeline_s.h:31, from src/mongo/s/commands/pipeline_s.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/mongo_process_interface.h:42, from src/mongo/db/pipeline/mongo_process_common.h:34, from src/mongo/s/commands/pipeline_s.h:31, from src/mongo/s/commands/pipeline_s.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/mongo_process_common.h:33, from src/mongo/s/commands/pipeline_s.h:31, from src/mongo/s/commands/pipeline_s.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/commands/pipeline_s.h:32, from src/mongo/s/commands/pipeline_s.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/commands/pipeline_s.h:32, from src/mongo/s/commands/pipeline_s.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/mongo_process_common.h:33, from src/mongo/s/commands/pipeline_s.h:31, from src/mongo/s/commands/pipeline_s.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_coll_stats.h:31, from src/mongo/db/pipeline/document_source_coll_stats.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/commands/pipeline_s.h:32, from src/mongo/s/commands/pipeline_s.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/vtzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/pipeline/granularity_rounder_preferred_numbers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/granularity_rounder.h:35, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/granularity_rounder.h:35, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/pipeline/granularity_rounder.h:34, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/granularity_rounder_powers_of_two.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/granularity_rounder.h:35, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/granularity_rounder.h:35, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/third_party/asio-master/asio/src/asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include src/third_party/asio-master/asio/src/asio.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/pipeline/granularity_rounder.h:34, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/pipeline/libgranularity_rounder.a build/fedora/mongo/db/pipeline/granularity_rounder.o build/fedora/mongo/db/pipeline/granularity_rounder_powers_of_two.o build/fedora/mongo/db/pipeline/granularity_rounder_preferred_numbers.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libgranularity_rounder.a g++ -o build/fedora/third_party/s2/s1interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s1interval.cc g++ -o build/fedora/mongo/scripting/deadline_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/deadline_monitor.cpp g++ -o build/fedora/mongo/s/catalog/dist_lock_ping_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/dist_lock_ping_info.cpp g++ -o build/fedora/mongo/s/catalog/dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/dist_lock_manager.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/unistr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/s/catalog/libdist_lock_manager.a build/fedora/mongo/s/catalog/dist_lock_manager.o build/fedora/mongo/s/catalog/dist_lock_ping_info.o Skipping ranlib for thin archive build/fedora/mongo/s/catalog/libdist_lock_manager.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/parsepos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/lasterror.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/lasterror.cpp g++ -o build/fedora/mongo/db/server_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/server_parameters.cpp ar rcsTD build/fedora/mongo/db/liblasterror.a build/fedora/mongo/db/lasterror.o Skipping ranlib for thin archive build/fedora/mongo/db/liblasterror.a g++ -o build/fedora/mongo/db/commands/kill_all_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/kill_all_sessions_command.cpp ar rcsTD build/fedora/mongo/db/libserver_parameters.a build/fedora/mongo/db/server_parameters.o Skipping ranlib for thin archive build/fedora/mongo/db/libserver_parameters.a g++ -o build/fedora/mongo/db/commands/fail_point_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/fail_point_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fail_point_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fail_point_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/fail_point_cmd.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fail_point_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/kill_all_sessions_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fail_point_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/fail_point_cmd.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/kill_all_sessions_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fail_point_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_all_sessions_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/generic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/generic.cpp g++ -o build/fedora/mongo/db/commands/parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/parameters.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/generic.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/generic.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/parameters.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/parameters.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/json.h:34, from src/mongo/db/commands/parameters.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:155:25: warning: loop variable 'command' creates a copy from type 'const std::pair, mongo::Command*>' [-Wrange-loop-construct] 155 | for (const auto command : globalCommandRegistry()->allCommands()) { | ^~~~~~~ src/mongo/db/commands/generic.cpp:155:25: note: use reference type to prevent copying 155 | for (const auto command : globalCommandRegistry()->allCommands()) { | ^~~~~~~ | & src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/json.h:34, from src/mongo/db/commands/parameters.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/parameters.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/util/bson_extract.h:33, from src/mongo/db/commands/generic.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/commands/find_and_modify_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/find_and_modify_common.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/json.h:33, from src/mongo/db/commands/parameters.cpp:35: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/find_and_modify_common.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/find_and_modify_common.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/find_and_modify_common.h:34, from src/mongo/db/commands/find_and_modify_common.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/find_and_modify_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/find_and_modify_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/find_and_modify_common.h:34, from src/mongo/db/commands/find_and_modify_common.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/start_session_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/start_session_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/find_and_modify_common.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/start_session_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/start_session_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/start_session_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/start_session_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/start_session_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/start_session_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/hashcmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/hashcmd.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/hashcmd.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/hashcmd.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/hashcmd.cpp:42: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/start_session_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/hashcmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/hashcmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/hashcmd.cpp:42: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/kill_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/kill_sessions_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/hashcmd.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_sessions_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_sessions_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/kill_sessions_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_sessions_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/refresh_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/refresh_logical_session_cache_now.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_sessions_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/kill_sessions_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_sessions_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/copydb_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/copydb_common.cpp g++ -o build/fedora/mongo/db/commands/refresh_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/refresh_sessions_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/refresh_sessions_command.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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 g++ -o build/fedora/mongo/db/commands/end_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/end_sessions_command.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/refresh_sessions_command.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/end_sessions_command.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/end_sessions_command.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/end_sessions_command.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/end_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/end_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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/end_sessions_command.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/rename_collection_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/rename_collection_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/end_sessions_command.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/s2/s2cellid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2cellid.cc ar rcsTD build/fedora/mongo/db/commands/libcore.a build/fedora/mongo/db/commands/copydb_common.o build/fedora/mongo/db/commands/end_sessions_command.o build/fedora/mongo/db/commands/fail_point_cmd.o build/fedora/mongo/db/commands/find_and_modify_common.o build/fedora/mongo/db/commands/generic.o build/fedora/mongo/db/commands/hashcmd.o build/fedora/mongo/db/commands/kill_all_sessions_by_pattern_command.o build/fedora/mongo/db/commands/kill_all_sessions_command.o build/fedora/mongo/db/commands/kill_sessions_command.o build/fedora/mongo/db/commands/parameters.o build/fedora/mongo/db/commands/refresh_logical_session_cache_now.o build/fedora/mongo/db/commands/refresh_sessions_command.o build/fedora/mongo/db/commands/rename_collection_common.o build/fedora/mongo/db/commands/start_session_command.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libcore.a g++ -o build/fedora/mongo/db/auth/security_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/security_key.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/client/remote_command_targeter_factory_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/remote_command_targeter_factory_impl.cpp g++ -o build/fedora/mongo/client/remote_command_targeter_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/remote_command_targeter_rs.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/auth/security_key.cpp:39: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/auth/libsecurity_key.a build/fedora/mongo/db/auth/security_key.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libsecurity_key.a g++ -o build/fedora/mongo/client/remote_command_targeter_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/remote_command_targeter_standalone.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/resbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/transport/service_executor_adaptive.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/transport/service_executor_adaptive.cpp ar rcsTD build/fedora/mongo/client/libremote_command_targeter.a build/fedora/mongo/client/remote_command_targeter_factory_impl.o build/fedora/mongo/client/remote_command_targeter_rs.o build/fedora/mongo/client/remote_command_targeter_standalone.o Skipping ranlib for thin archive build/fedora/mongo/client/libremote_command_targeter.a g++ -o build/fedora/mongo/transport/service_executor_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/transport/service_executor_synchronous.cpp g++ -o build/fedora/mongo/transport/thread_idle_callback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/transport/thread_idle_callback.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationtailoring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/wintzimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/nultrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/logical_clock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_clock.cpp ar rcsTD build/fedora/mongo/transport/libservice_executor.a build/fedora/mongo/transport/service_executor_adaptive.o build/fedora/mongo/transport/service_executor_synchronous.o build/fedora/mongo/transport/thread_idle_callback.o Skipping ranlib for thin archive build/fedora/mongo/transport/libservice_executor.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/quick_exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/quick_exit.cpp g++ -o build/fedora/mongo/db/query/cursor_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/cursor_request.cpp g++ -o build/fedora/mongo/db/query/find_and_modify_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/find_and_modify_request.cpp g++ -o build/fedora/mongo/db/query/killcursors_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/killcursors_response.cpp g++ -o build/fedora/mongo/db/query/view_response_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/view_response_formatter.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_response.h:35, from src/mongo/db/query/killcursors_response.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_response.h:35, from src/mongo/db/query/killcursors_response.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/killcursors_response.h:34, from src/mongo/db/query/killcursors_response.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_response.h:35, from src/mongo/db/query/killcursors_response.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_response.h:35, from src/mongo/db/query/killcursors_response.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/killcursors_response.h:34, from src/mongo/db/query/killcursors_response.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/view_response_formatter.h:31, from src/mongo/db/query/view_response_formatter.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/view_response_formatter.h:31, from src/mongo/db/query/view_response_formatter.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_response.h:35, from src/mongo/db/query/killcursors_response.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/killcursors_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/killcursors_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/db/query/view_response_formatter.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/getmore_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/getmore_request.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_request.h:35, from src/mongo/db/query/killcursors_request.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_request.h:35, from src/mongo/db/query/killcursors_request.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/killcursors_request.h:34, from src/mongo/db/query/killcursors_request.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_request.h:35, from src/mongo/db/query/killcursors_request.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_request.h:35, from src/mongo/db/query/killcursors_request.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/killcursors_request.h:34, from src/mongo/db/query/killcursors_request.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/getmore_request.h:36, from src/mongo/db/query/getmore_request.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/getmore_request.h:36, from src/mongo/db/query/getmore_request.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/query/getmore_request.h:36, from src/mongo/db/query/getmore_request.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/getmore_request.h:36, from src/mongo/db/query/getmore_request.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/getmore_request.h:36, from src/mongo/db/query/getmore_request.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/query/getmore_request.h:36, from src/mongo/db/query/getmore_request.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/killcursors_request.h:35, from src/mongo/db/query/killcursors_request.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/getmore_request.h:36, from src/mongo/db/query/getmore_request.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/s2/base/strtoint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/base/strtoint.cc g++ -o build/fedora/third_party/s2/base/int128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/base/int128.cc In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/query/getmore_request.h:34, from src/mongo/db/query/getmore_request.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/third_party/s2/base/logging.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/base/logging.cc ar rcsTD build/fedora/mongo/db/query/libcommand_request_response.a build/fedora/mongo/db/query/count_request.o build/fedora/mongo/db/query/cursor_request.o build/fedora/mongo/db/query/cursor_response.o build/fedora/mongo/db/query/find_and_modify_request.o build/fedora/mongo/db/query/getmore_request.o build/fedora/mongo/db/query/killcursors_request.o build/fedora/mongo/db/query/killcursors_response.o build/fedora/mongo/db/query/view_response_formatter.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libcommand_request_response.a g++ -o build/fedora/third_party/s2/base/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/base/stringprintf.cc g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_xor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp ar rcsTD build/fedora/third_party/s2/base/libbase_s2.a build/fedora/third_party/s2/base/int128.o build/fedora/third_party/s2/base/logging.o build/fedora/third_party/s2/base/stringprintf.o build/fedora/third_party/s2/base/strtoint.o Skipping ranlib for thin archive build/fedora/third_party/s2/base/libbase_s2.a g++ -o build/fedora/third_party/s2/s2edgeindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2edgeindex.cc In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_tree.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_tree.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_tree.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_xor.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/schema/expression_internal_schema_xor.cpp:31: 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:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:57:25: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucnv2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/uchriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from /usr/include/string.h:519, from src/third_party/icu4c-57.1/source/common/cmemory.h:30, from src/third_party/icu4c-57.1/source/common/cstring.h:29, from src/third_party/icu4c-57.1/source/common/ucnv2022.cpp:42: In function 'strncpy', inlined from '_ISO2022Open(UConverter*, UConverterLoadArgs*, UErrorCode*)' at src/third_party/icu4c-57.1/source/common/ucnv2022.cpp:489:13: /usr/include/bits/string_fortified.h:95:34: warning: 'strncpy' specified bound 6 equals destination size [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/s/commands/cluster_list_shards_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_list_shards_cmd.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/rbbistbl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/query/collation/collator_factory_icu_decoration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/collation/collator_factory_icu_decoration.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_shards_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_shards_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/find_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/find_common.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_common.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_common.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/find_common.h:29, from src/mongo/db/query/find_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/query/find_common.h:29, from src/mongo/db/query/find_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/variables.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/variables.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/find_common.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/variables.h:31, from src/mongo/db/pipeline/variables.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/variables.h:31, from src/mongo/db/pipeline/variables.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/variables.h:31, from src/mongo/db/pipeline/variables.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/icu4c-57.1/source/common/uinvchar.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/stats/counters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/counters.cpp g++ -o build/fedora/mongo/s/cluster_last_error_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/cluster_last_error_info.cpp ar rcsTD build/fedora/mongo/db/stats/libcounters.a build/fedora/mongo/db/stats/counters.o Skipping ranlib for thin archive build/fedora/mongo/db/stats/libcounters.a g++ -o build/fedora/mongo/executor/task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/task_executor.cpp ar rcsTD build/fedora/mongo/s/libcluster_last_error_info.a build/fedora/mongo/s/cluster_last_error_info.o Skipping ranlib for thin archive build/fedora/mongo/s/libcluster_last_error_info.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/executor/libtask_executor_interface.a build/fedora/mongo/executor/task_executor.o Skipping ranlib for thin archive build/fedora/mongo/executor/libtask_executor_interface.a g++ -o build/fedora/mongo/rpc/metadata/audit_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/audit_metadata.cpp g++ -o build/fedora/mongo/db/query/index_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/index_entry.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/index_entry.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/index_entry.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/query/index_entry.h:35, from src/mongo/db/query/index_entry.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/rpc/libaudit_metadata.a build/fedora/mongo/rpc/metadata/audit_metadata.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libaudit_metadata.a g++ -o build/fedora/mongo/db/query/plan_enumerator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/plan_enumerator.cpp g++ -o build/fedora/mongo/db/query/query_solution.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/query_solution.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/query_solution.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/query_solution.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/query_solution.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, 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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_solution.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, 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: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::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_solution.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/plan_enumerator.h:35, from src/mongo/db/query/plan_enumerator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/query_solution.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MatchExpression*, mongo::StringMapTraits>': src/mongo/db/query/plan_enumerator.cpp:181:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, 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:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_solution.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/canonical_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/canonical_query.cpp g++ -o build/fedora/mongo/db/query/plan_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/plan_cache.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/canonical_query.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/canonical_query.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/canonical_query.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/canonical_query.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/canonical_query.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/plan_cache.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/plan_cache.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/query/plan_cache.h:34, from src/mongo/db/query/plan_cache.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/canonical_query.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/plan_cache.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/plan_cache.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/db/query/canonical_query.cpp:36: 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/query/plan_cache.h:34, from src/mongo/db/query/plan_cache.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/canonical_query.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/query/canonical_query.cpp: In static member function 'static mongo::StatusWith > mongo::CanonicalQuery::canonicalize(mongo::OperationContext*, std::unique_ptr, const boost::intrusive_ptr&, const mongo::ExtensionsCallback&, mongo::MatchExpressionParser::AllowedFeatureSet)': src/mongo/db/query/canonical_query.cpp:177:21: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(cq); | ~~~~~~~~~^~~~ src/mongo/db/query/canonical_query.cpp:177: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:212:21: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(cq); | ~~~~~~~~~^~~~ src/mongo/db/query/canonical_query.cpp:212:21: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/query/plan_cache.cpp:42: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h: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_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/canonical_query.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/plan_cache.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/query_planner_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/query_planner_common.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_planner_common.h:32, from src/mongo/db/query/query_planner_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_planner_common.h:32, from src/mongo/db/query/query_planner_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/query/query_planner_common.h:31, from src/mongo/db/query/query_planner_common.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_planner_common.h:33, from src/mongo/db/query/query_planner_common.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_planner_common.h:33, from src/mongo/db/query/query_planner_common.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/query/query_planner_common.h:31, from src/mongo/db/query/query_planner_common.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/query_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/query_planner.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_planner_common.h:33, from src/mongo/db/query/query_planner_common.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/plan_cache_indexability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/plan_cache_indexability.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/query_planner.h:32, from src/mongo/db/query/query_planner.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/query_planner.h:32, from src/mongo/db/query/query_planner.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/query_planner.h:32, from src/mongo/db/query/query_planner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/query_planner.h:32, from src/mongo/db/query/query_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_planner.h:32, from src/mongo/db/query/query_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/util/string_map.h:36, from src/mongo/db/query/plan_cache_indexability.h:35, from src/mongo/db/query/plan_cache_indexability.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/plan_cache_indexability.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/query_planner.h:32, from src/mongo/db/query/query_planner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/plan_cache_indexability.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/db/query/plan_cache_indexability.h:35, from src/mongo/db/query/plan_cache_indexability.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_internal_expr_eq.h:31, from src/mongo/db/query/plan_cache_indexability.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/planner_ixselect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/planner_ixselect.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_planner.h:32, from src/mongo/db/query/query_planner.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/query/planner_ixselect.cpp:40: 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_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/query/canonical_query.h:32, from src/mongo/db/query/planner_ixselect.h:31, from src/mongo/db/query/planner_ixselect.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/query/parsed_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/parsed_projection.cpp g++ -o build/fedora/mongo/db/query/planner_analysis.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/planner_analysis.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/parsed_projection.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/parsed_projection.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/query/parsed_projection.h:29, from src/mongo/db/query/parsed_projection.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/parsed_projection.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/parsed_projection.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/query/parsed_projection.h:29, from src/mongo/db/query/parsed_projection.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/parsed_projection.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/test_commands_enabled.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/test_commands_enabled.cpp g++ -o build/fedora/mongo/s/commands/cluster_get_shard_version_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_get_shard_version_cmd.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/query/canonical_query.h:32, from src/mongo/db/query/planner_analysis.h:31, from src/mongo/db/query/planner_analysis.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/query/libquery_planner.a build/fedora/mongo/db/query/canonical_query.o build/fedora/mongo/db/query/query_settings.o build/fedora/mongo/db/query/index_entry.o build/fedora/mongo/db/query/index_tag.o build/fedora/mongo/db/query/parsed_projection.o build/fedora/mongo/db/query/plan_cache.o build/fedora/mongo/db/query/plan_cache_indexability.o build/fedora/mongo/db/query/plan_enumerator.o build/fedora/mongo/db/query/planner_access.o build/fedora/mongo/db/query/planner_analysis.o build/fedora/mongo/db/query/planner_ixselect.o build/fedora/mongo/db/query/query_planner.o build/fedora/mongo/db/query/query_planner_common.o build/fedora/mongo/db/query/query_solution.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libquery_planner.a In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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 g++ -o build/fedora/mongo/rpc/metadata/client_metadata_ismaster.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/client_metadata_ismaster.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/rpc/protocol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/protocol.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/committed_optime_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/committed_optime_metadata_hook.cpp g++ -o build/fedora/mongo/rpc/legacy_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/legacy_request.cpp ar rcsTD build/fedora/mongo/s/libcommitted_optime_metadata_hook.a build/fedora/mongo/s/committed_optime_metadata_hook.o Skipping ranlib for thin archive build/fedora/mongo/s/libcommitted_optime_metadata_hook.a g++ -o build/fedora/mongo/db/query/parsed_distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/parsed_distinct.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/utrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/unistr_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/parsed_distinct.h:35, from src/mongo/db/query/parsed_distinct.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/parsed_distinct.h:35, from src/mongo/db/query/parsed_distinct.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/parsed_distinct.h:35, from src/mongo/db/query/parsed_distinct.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/grid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/grid.cpp In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/parsed_distinct.h:35, from src/mongo/db/query/parsed_distinct.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/parsed_distinct.h:35, from src/mongo/db/query/parsed_distinct.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/db/query/canonical_query.h:33, from src/mongo/db/query/parsed_distinct.h:35, from src/mongo/db/query/parsed_distinct.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/parsed_distinct.h:35, from src/mongo/db/query/parsed_distinct.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/s/grid.h:31, from src/mongo/s/grid.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/grid.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/grid.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/s/grid.h:31, from src/mongo/s/grid.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/grid.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/grid.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/s/grid.h:31, from src/mongo/s/grid.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/query/libquery_common.a build/fedora/mongo/db/query/collation/collator_factory_icu_decoration.o build/fedora/mongo/db/query/find_common.o build/fedora/mongo/db/query/parsed_distinct.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libquery_common.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.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/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/grid.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/write_unit_of_work.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/write_unit_of_work.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/rbbi.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/mongos_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/mongos_options_init.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/valueformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/query/collation/collation_index_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/collation/collation_index_key.cpp g++ -o build/fedora/mongo/db/query/collation/collation_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/collation/collation_spec.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/tzrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/unclean_shutdown.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/unclean_shutdown.cpp ar rcsTD build/fedora/mongo/util/libntservice.a build/fedora/mongo/util/ntservice.o Skipping ranlib for thin archive build/fedora/mongo/util/libntservice.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/plurrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/commands/server_status_metric.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/server_status_metric.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/ucsdet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/query/document_source_router_adapter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/document_source_router_adapter.cpp g++ -o build/fedora/mongo/s/query/router_stage_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/router_stage_limit.cpp g++ -o build/fedora/mongo/s/query/router_stage_mock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/router_stage_mock.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/router_exec_stage.h:35, from src/mongo/s/query/document_source_router_adapter.h:31, from src/mongo/s/query/document_source_router_adapter.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_router_adapter.h:33, from src/mongo/s/query/document_source_router_adapter.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_router_adapter.h:33, from src/mongo/s/query/document_source_router_adapter.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/router_exec_stage.h:35, from src/mongo/s/query/document_source_router_adapter.h:31, from src/mongo/s/query/document_source_router_adapter.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_router_adapter.h:33, from src/mongo/s/query/document_source_router_adapter.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_router_adapter.h:33, from src/mongo/s/query/document_source_router_adapter.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/router_exec_stage.h:35, from src/mongo/s/query/document_source_router_adapter.h:31, from src/mongo/s/query/document_source_router_adapter.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/pipeline/document_sources_gen.h --output build/fedora/mongo/db/pipeline/document_sources_gen.cpp src/mongo/db/pipeline/document_sources.idl g++ -o build/fedora/mongo/s/query/router_stage_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/document_source_router_adapter.h:33, from src/mongo/s/query/document_source_router_adapter.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/router_exec_stage.h:35, from src/mongo/s/query/router_stage_pipeline.h:31, from src/mongo/s/query/router_stage_pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/router_stage_pipeline.h:33, from src/mongo/s/query/router_stage_pipeline.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/router_stage_pipeline.h:33, from src/mongo/s/query/router_stage_pipeline.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/router_exec_stage.h:35, from src/mongo/s/query/router_stage_pipeline.h:31, from src/mongo/s/query/router_stage_pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/router_stage_pipeline.h:33, from src/mongo/s/query/router_stage_pipeline.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/router_stage_pipeline.h:33, from src/mongo/s/query/router_stage_pipeline.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/router_exec_stage.h:35, from src/mongo/s/query/router_stage_pipeline.h:31, from src/mongo/s/query/router_stage_pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/query/router_stage_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/router_stage_skip.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/query/router_stage_remove_metadata_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/router_stage_remove_metadata_fields.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/query/router_stage_pipeline.h:33, from src/mongo/s/query/router_stage_pipeline.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/s/query/router_stage_remove_metadata_fields.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/s/query/router_stage_remove_metadata_fields.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/s/query/router_stage_merge.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/router_stage_merge.cpp g++ -o build/fedora/mongo/s/query/router_stage_update_on_add_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/router_stage_update_on_add_shard.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/router_stage_merge.h:32, from src/mongo/s/query/router_stage_merge.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/router_stage_merge.h:32, from src/mongo/s/query/router_stage_merge.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/executor/task_executor.h:39, from src/mongo/s/query/router_stage_merge.h:31, from src/mongo/s/query/router_stage_merge.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/router_stage_merge.h:32, from src/mongo/s/query/router_stage_merge.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/router_stage_update_on_add_shard.h:31, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:30: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/router_stage_update_on_add_shard.h:31, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:30: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/router_stage_update_on_add_shard.h:31, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:30: src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/executor/task_executor.h:39, from src/mongo/s/query/router_stage_update_on_add_shard.h:30, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/router_stage_merge.h:32, from src/mongo/s/query/router_stage_merge.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/router_stage_update_on_add_shard.h:31, from src/mongo/s/query/router_stage_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/executor/task_executor.h:39, from src/mongo/s/query/router_stage_merge.h:31, from src/mongo/s/query/router_stage_merge.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/router_stage_update_on_add_shard.h:31, from src/mongo/s/query/router_stage_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/executor/task_executor.h:39, from src/mongo/s/query/router_stage_update_on_add_shard.h:30, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/router_stage_merge.h:32, from src/mongo/s/query/router_stage_merge.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/router_stage_update_on_add_shard.h:31, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_remove_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_remove_shard_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/fedora/mongo/s/query/librouter_exec_stage.a build/fedora/mongo/s/query/document_source_router_adapter.o build/fedora/mongo/s/query/router_stage_limit.o build/fedora/mongo/s/query/router_stage_merge.o build/fedora/mongo/s/query/router_stage_mock.o build/fedora/mongo/s/query/router_stage_pipeline.o build/fedora/mongo/s/query/router_stage_remove_metadata_fields.o build/fedora/mongo/s/query/router_stage_skip.o build/fedora/mongo/s/query/router_stage_update_on_add_shard.o Skipping ranlib for thin archive build/fedora/mongo/s/query/librouter_exec_stage.a g++ -o build/fedora/mongo/db/field_ref.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/field_ref.cpp In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/unum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/util/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/background.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/util/libbackground_job.a build/fedora/mongo/util/background.o Skipping ranlib for thin archive build/fedora/mongo/util/libbackground_job.a g++ -o build/fedora/mongo/db/pipeline/document_source_project.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_project.cpp g++ -o build/fedora/mongo/s/commands/cluster_aggregate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_aggregate.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/commands/cluster_aggregate.h:35, from src/mongo/s/commands/cluster_aggregate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/commands/cluster_aggregate.h:38, from src/mongo/s/commands/cluster_aggregate.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/commands/cluster_aggregate.h:38, from src/mongo/s/commands/cluster_aggregate.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/commands/cluster_aggregate.h:35, from src/mongo/s/commands/cluster_aggregate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/commands/cluster_aggregate.h:38, from src/mongo/s/commands/cluster_aggregate.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/commands/cluster_aggregate.h:38, from src/mongo/s/commands/cluster_aggregate.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/commands/cluster_aggregate.h:35, from src/mongo/s/commands/cluster_aggregate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_project.h:31, from src/mongo/db/pipeline/document_source_project.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libservice_liaison.a build/fedora/mongo/db/service_liaison.o Skipping ranlib for thin archive build/fedora/mongo/db/libservice_liaison.a g++ -o build/fedora/mongo/db/query/collation/collator_factory_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/collation/collator_factory_icu.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/s/commands/cluster_aggregate.h:38, from src/mongo/s/commands/cluster_aggregate.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/collation/collator_interface_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/collation/collator_interface_icu.cpp ar rcsTD build/fedora/mongo/db/query/collation/libcollator_icu.a build/fedora/mongo/db/query/collation/collator_factory_icu.o build/fedora/mongo/db/query/collation/collator_interface_icu.o Skipping ranlib for thin archive build/fedora/mongo/db/query/collation/libcollator_icu.a g++ -o build/fedora/mongo/base/parse_number.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/parse_number.cpp g++ -o build/fedora/mongo/executor/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/connection_pool.cpp In file included from src/mongo/executor/connection_pool.cpp:42: src/mongo/util/lru_cache.h: In instantiation of 'boost::optional mongo::LRUCache::add(const K&, V) [with K = mongo::executor::ConnectionPool::ConnectionInterface*; V = std::shared_ptr; Hash = std::hash; KeyEqual = std::equal_to]': src/mongo/executor/connection_pool.cpp:563:19: required from here src/mongo/util/lru_cache.h:109:36: warning: redundant move in return statement [-Wredundant-move] 109 | return std::move(result); | ^ src/mongo/util/lru_cache.h:109:36: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/locid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationsettings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/pipeline/document_source_change_stream_close_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp g++ -o build/fedora/mongo/db/ftdc/ftdc_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/ftdc_server.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/change_stream_constants.h:31, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:31, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:32, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:32, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/change_stream_constants.h:31, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:31, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:32, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:32, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/change_stream_constants.h:31, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:31, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_server.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_server.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/ftdc/ftdc_server.h:33, from src/mongo/db/ftdc/ftdc_server.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_server.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_server.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/ftdc/ftdc_server.h:33, from src/mongo/db/ftdc/ftdc_server.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:32, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_server.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/ftdc/ftdc_system_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/ftdc_system_stats.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_bld.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/ftdc/libftdc_server.a build/fedora/mongo/db/ftdc/ftdc_server.o build/fedora/mongo/db/ftdc/ftdc_system_stats.o build/fedora/mongo/db/ftdc/ftdc_system_stats_linux.o Skipping ranlib for thin archive build/fedora/mongo/db/ftdc/libftdc_server.a g++ -o build/fedora/mongo/db/service_liaison_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/service_liaison_mongos.cpp g++ -o build/fedora/mongo/s/commands/cluster_profile_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_profile_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_profile_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_profile_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_profile_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_profile_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/db/service_liaison_mongos.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/db/service_liaison_mongos.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_profile_cmd.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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_liaison_mongos.h:31, from src/mongo/db/service_liaison_mongos.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/db/service_liaison_mongos.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/db/service_liaison_mongos.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_profile_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_liaison_mongos.h:31, from src/mongo/db/service_liaison_mongos.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_profile_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/db/service_liaison_mongos.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/unistr_case.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationfcd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/commands/cluster_coll_stats_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_coll_stats_cmd.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/auth/sasl_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/sasl_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_coll_stats_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_coll_stats_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/sasl_commands.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/sasl_commands.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/algorithm.h:35, from src/mongo/db/auth/sasl_commands.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/sasl_commands.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/sasl_commands.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/algorithm.h:35, from src/mongo/db/auth/sasl_commands.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/auth/sasl_commands.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::doSaslStart(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder*)': src/mongo/db/auth/sasl_commands.cpp:241:21: warning: redundant move in return statement [-Wredundant-move] 241 | return std::move(session); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/auth/sasl_commands.cpp:241:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/sasl_commands.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_add_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_add_shard_cmd.cpp g++ -o build/fedora/mongo/platform/shared_library.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/shared_library.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.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:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256: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::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/dtintrv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_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 g++ -o build/fedora/mongo/db/generic_cursor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/generic_cursor_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/generic_cursor_gen.h:16, from build/fedora/mongo/db/generic_cursor_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/generic_cursor_gen.h:16, from build/fedora/mongo/db/generic_cursor_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/currfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/pipeline/document_source_geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_geo_near.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/util/stacktrace_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/stacktrace_posix.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/secure_zero_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/secure_zero_memory.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_geo_near.h:31, from src/mongo/db/pipeline/document_source_geo_near.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/util/libsecure_zero_memory.a build/fedora/mongo/util/secure_zero_memory.o Skipping ranlib for thin archive build/fedora/mongo/util/libsecure_zero_memory.a g++ -o build/fedora/mongo/util/options_parser/options_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/options_parser.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/util/libquick_exit.a build/fedora/mongo/util/quick_exit.o Skipping ranlib for thin archive build/fedora/mongo/util/libquick_exit.a g++ -o build/fedora/mongo/rpc/reply_builder_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/reply_builder_interface.cpp g++ -o build/fedora/mongo/scripting/dbdirectclient_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/dbdirectclient_factory.cpp g++ -o build/fedora/mongo/scripting/engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/engine.cpp g++ -o build/fedora/mongo/logger/parse_log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/parse_log_component_settings.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnvlat1.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/choicfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/usprep.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/s/commands/cluster_get_shard_map_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_get_shard_map_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_map_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_map_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/s/commands/cluster_get_shard_map_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_map_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_map_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/s/commands/cluster_get_shard_map_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/scripting/libscripting_common.a build/fedora/mongo/scripting/deadline_monitor.o build/fedora/mongo/scripting/dbdirectclient_factory.o build/fedora/mongo/scripting/engine.o build/fedora/mongo/scripting/utils.o Skipping ranlib for thin archive build/fedora/mongo/scripting/libscripting_common.a g++ -o build/fedora/mongo/rpc/command_reply_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/command_reply_builder.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_shard_map_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucharstriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/s/query/cluster_query_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/cluster_query_knobs.cpp g++ -o build/fedora/mongo/s/query/cluster_find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/cluster_find.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/server_options_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/server_options_helpers.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:35, from src/mongo/s/query/cluster_find.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:35, from src/mongo/s/query/cluster_find.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/cluster_find.h:33, from src/mongo/s/query/cluster_find.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:35, from src/mongo/s/query/cluster_find.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:35, from src/mongo/s/query/cluster_find.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/cluster_find.h:33, from src/mongo/s/query/cluster_find.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/util/options_parser/environment.h:34, from src/mongo/db/server_options_helpers.h:32, from src/mongo/db/server_options_helpers.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:168:21: warning: redundant move in return statement [-Wredundant-move] 168 | return std::move(newQR); | ~~~~~~~~~^~~~~~~ src/mongo/s/query/cluster_find.cpp:168:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/s/query/cluster_find.h:35, from src/mongo/s/query/cluster_find.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libserver_options.a build/fedora/mongo/db/server_options_helpers.o Skipping ranlib for thin archive build/fedora/mongo/db/libserver_options.a g++ -o build/fedora/mongo/db/update_index_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update_index_data.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/translit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/util/tcmalloc_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/tcmalloc_server_status_section.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/tcmalloc_server_status_section.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/tcmalloc_server_status_section.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ ar rcsTD build/fedora/mongo/s/query/libcluster_query.a build/fedora/mongo/s/query/cluster_find.o build/fedora/mongo/s/query/cluster_query_knobs.o Skipping ranlib for thin archive build/fedora/mongo/s/query/libcluster_query.a In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/tcmalloc_server_status_section.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/heap_profiler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/heap_profiler.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/tcmalloc_server_status_section.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/tcmalloc_server_status_section.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/tcmalloc_server_status_section.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/heap_profiler.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/heap_profiler.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/heap_profiler.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/heap_profiler.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/heap_profiler.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/heap_profiler.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/tcmalloc_server_status_section.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/tcmalloc_set_parameter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/tcmalloc_set_parameter.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/heap_profiler.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/util/concurrency/ticketholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/concurrency/ticketholder.cpp ar rcsTD build/fedora/mongo/util/libtcmalloc_set_parameter.a build/fedora/mongo/util/tcmalloc_server_status_section.o build/fedora/mongo/util/tcmalloc_set_parameter.o build/fedora/mongo/util/heap_profiler.o Skipping ranlib for thin archive build/fedora/mongo/util/libtcmalloc_set_parameter.a g++ -o build/fedora/mongo/s/commands/cluster_index_filter_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_index_filter_cmd.cpp g++ -o build/fedora/mongo/db/catalog/namespace_uuid_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/namespace_uuid_cache.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_index_filter_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_index_filter_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/namespace_uuid_cache.h:32, from src/mongo/db/catalog/namespace_uuid_cache.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UUID, mongo::StringMapTraits>': src/mongo/db/catalog/namespace_uuid_cache.h:86:23: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/namespace_uuid_cache.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/namespace_uuid_cache.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/namespace_uuid_cache.h:32, from src/mongo/db/catalog/namespace_uuid_cache.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/namespace_uuid_cache.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/namespace_uuid_cache.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/namespace_uuid_cache.h:32, from src/mongo/db/catalog/namespace_uuid_cache.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/storage/libwrite_unit_of_work.a build/fedora/mongo/db/storage/write_unit_of_work.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libwrite_unit_of_work.a g++ -o build/fedora/mongo/db/auth/role_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/role_name.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/ubidiln.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/namespace_uuid_cache.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/net/ssl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/ssl_options.cpp g++ -o build/fedora/mongo/db/sessions_collection_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/sessions_collection_rs.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/db/sessions_collection_rs.h:33, from src/mongo/db/sessions_collection_rs.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:149:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::LockMode, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; RemoteCallback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:155:20: required from here src/mongo/db/sessions_collection_rs.cpp:132:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 132 | return std::move(val); | ^ src/mongo/db/sessions_collection_rs.cpp:132:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:149:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::LockMode, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; RemoteCallback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:182:20: required from here src/mongo/db/sessions_collection_rs.cpp:132:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:132:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:149:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::LockMode, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:201:20: required from here src/mongo/db/sessions_collection_rs.cpp:132:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:132:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::StatusWith >]': src/mongo/db/sessions_collection_rs.cpp:149:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::LockMode, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::StatusWith >]' src/mongo/db/sessions_collection_rs.cpp:219:20: required from here src/mongo/db/sessions_collection_rs.cpp:132:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:132:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:149:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::LockMode, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:237:20: required from here src/mongo/db/sessions_collection_rs.cpp:132:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:132:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/conn_pool_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/conn_pool_sync.cpp ar rcsTD build/fedora/mongo/db/libsessions_collection_rs.a build/fedora/mongo/db/sessions_collection_rs.o Skipping ranlib for thin archive build/fedora/mongo/db/libsessions_collection_rs.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/commands/mr_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/mr_common.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/global_conn_pool.h:31, from src/mongo/db/commands/conn_pool_sync.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_sync.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_sync.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/global_conn_pool.h:31, from src/mongo/db/commands/conn_pool_sync.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr_common.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_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 In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr_common.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr_common.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr_common.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/global_conn_pool.h:31, from src/mongo/db/commands/conn_pool_sync.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr_common.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr_common.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_sync.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr_common.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_netstat_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_netstat_cmd.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/mutable/element.h:32, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr_common.cpp:29: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/uitercollationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/pipeline/value_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/value_comparator.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_netstat_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_netstat_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_netstat_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_netstat_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_netstat_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_netstat_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/value_comparator.h:35, from src/mongo/db/pipeline/value_comparator.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ g++ -o build/fedora/mongo/db/pipeline/document_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_comparator.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/document_comparator.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/document_comparator.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/db/pipeline/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/value.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_netstat_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/value.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/value.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/db/pipeline/document_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_path_support.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/value.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_path_support.h:33, from src/mongo/db/pipeline/document_path_support.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_path_support.h:33, from src/mongo/db/pipeline/document_path_support.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_path_support.h:33, from src/mongo/db/pipeline/document_path_support.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/pipeline/value.h:32, from src/mongo/db/pipeline/value.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/pipeline/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document.cpp g++ -o build/fedora/mongo/s/shard_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/shard_util.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ 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:133:21: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(splitPoints); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/s/shard_util.cpp:133:21: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/pipeline/libdocument_value.a build/fedora/mongo/db/pipeline/document.o build/fedora/mongo/db/pipeline/document_comparator.o build/fedora/mongo/db/pipeline/document_path_support.o build/fedora/mongo/db/pipeline/value.o build/fedora/mongo/db/pipeline/value_comparator.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libdocument_value.a g++ -o build/fedora/mongo/db/pipeline/document_source_list_local_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_list_local_sessions.cpp g++ -o build/fedora/mongo/db/matcher/path_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/path_internal.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_sessions.h:37, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_sessions.h:37, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_sessions.h:37, from src/mongo/db/pipeline/document_source_list_local_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_sessions.h:37, from src/mongo/db/pipeline/document_source_list_local_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 g++ -o build/fedora/mongo/db/commands/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/isself.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/isself.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/isself.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/isself.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/isself.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/isself.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/isself.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_sessions.h:37, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/isself.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/update/path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/path_support.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/dayperiodrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/shim_boost.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_boost.cpp ar rcsTD build/fedora/third_party/libshim_boost.a build/fedora/third_party/shim_boost.o Skipping ranlib for thin archive build/fedora/third_party/libshim_boost.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/loadednormalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/update/path_support.h:38, from src/mongo/db/update/path_support.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/update/path_support.h:38, from src/mongo/db/update/path_support.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/s/commands/cluster_create_indexes_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_create_indexes_cmd.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/update/path_support.h:35, from src/mongo/db/update/path_support.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/update/path_support.h:39, from src/mongo/db/update/path_support.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_indexes_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_indexes_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 g++ -o build/fedora/mongo/util/log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/log.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/mongos_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/mongos_options.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/taiwncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/timelib-2018.01alpha1/timelib.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/timelib.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/astro.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/astro.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/tm2unixtime.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/tm2unixtime.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/unixtime2tm.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/unixtime2tm.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/parse_tz.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_tz.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/parse_date.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_date.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/parse_iso_intervals.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_iso_intervals.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/dow.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/dow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/timelib-2018.01alpha1/interval.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/interval.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/pipeline/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/expression.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/expression.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/expression.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/expression.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::{anonymous}::ParserRegistration, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.cpp:113:31: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::{anonymous}::ParserRegistration; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::{anonymous}::ParserRegistration; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::{anonymous}::ParserRegistration; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::{anonymous}::ParserRegistration; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionZip::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4840:21: warning: redundant move in return statement [-Wredundant-move] 4840 | return std::move(newZip); | ~~~~~~~~~^~~~~~~~ src/mongo/db/pipeline/expression.cpp:4840:21: note: remove 'std::move' call src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionConvert::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:5489:21: warning: redundant move in return statement [-Wredundant-move] 5489 | return std::move(newConvert); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5489:21: note: remove 'std::move' call ar rcsTD build/fedora/third_party/timelib-2018.01alpha1/libtimelib.a build/fedora/third_party/timelib-2018.01alpha1/astro.o build/fedora/third_party/timelib-2018.01alpha1/dow.o build/fedora/third_party/timelib-2018.01alpha1/interval.o build/fedora/third_party/timelib-2018.01alpha1/parse_date.o build/fedora/third_party/timelib-2018.01alpha1/parse_iso_intervals.o build/fedora/third_party/timelib-2018.01alpha1/parse_tz.o build/fedora/third_party/timelib-2018.01alpha1/parse_zoneinfo.o build/fedora/third_party/timelib-2018.01alpha1/timelib.o build/fedora/third_party/timelib-2018.01alpha1/tm2unixtime.o build/fedora/third_party/timelib-2018.01alpha1/unixtime2tm.o Skipping ranlib for thin archive build/fedora/third_party/timelib-2018.01alpha1/libtimelib.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/pipeline/dependencies.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/dependencies.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/dependencies.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/dependencies.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/pipeline/dependencies.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/pipeline/libdependencies.a build/fedora/mongo/db/pipeline/dependencies.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libdependencies.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/ures_cnv.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/util/signal_handlers_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/signal_handlers_synchronous.cpp g++ -o build/fedora/mongo/db/query/explain_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/explain_options.cpp g++ -o build/fedora/mongo/db/server_options_server_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/server_options_server_helpers.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/util/options_parser/environment.h:34, from src/mongo/db/server_options_server_helpers.h:32, from src/mongo/db/server_options_server_helpers.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/auth/role_graph_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/role_graph_update.cpp g++ -o build/fedora/mongo/bson/bson_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bson_validate.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/auth/role_graph_update.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/auth/role_graph_update.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/db/auth/role_graph_update.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/auth/role_graph_update.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/auth/role_graph_update.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/db/auth/role_graph_update.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/persncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/client/sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/sasl_client_session.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/client/sasl_scram_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/sasl_scram_client_conversation.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/auth/role_graph_update.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/client/native_sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/native_sasl_client_session.cpp g++ -o build/fedora/mongo/client/sasl_client_authenticate_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/sasl_client_authenticate_impl.cpp g++ -o build/fedora/mongo/client/sasl_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/sasl_client_conversation.cpp g++ -o build/fedora/mongo/client/sasl_plain_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/sasl_plain_client_conversation.cpp g++ -o build/fedora/mongo/base/data_range_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/data_range_cursor.cpp ar rcsTD build/fedora/mongo/client/libsasl_client.a build/fedora/mongo/client/native_sasl_client_session.o build/fedora/mongo/client/sasl_client_authenticate.o build/fedora/mongo/client/sasl_client_authenticate_impl.o build/fedora/mongo/client/sasl_client_conversation.o build/fedora/mongo/client/sasl_client_session.o build/fedora/mongo/client/sasl_plain_client_conversation.o build/fedora/mongo/client/sasl_scram_client_conversation.o Skipping ranlib for thin archive build/fedora/mongo/client/libsasl_client.a ar rcsTD build/fedora/mongo/rpc/librpc.a build/fedora/mongo/rpc/factory.o Skipping ranlib for thin archive build/fedora/mongo/rpc/librpc.a g++ -o build/fedora/mongo/db/repl/rollback_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/repl/rollback_gen.cpp g++ -o build/fedora/mongo/db/geo/r2_region_coverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/geo/r2_region_coverer.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/rollback_gen.h:16, from build/fedora/mongo/db/repl/rollback_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/rollback_gen.h:16, from build/fedora/mongo/db/repl/rollback_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/update/rename_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/rename_node.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/rename_node.h:31, from src/mongo/db/update/rename_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/rename_node.h:31, from src/mongo/db/update/rename_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/rename_node.h:31, from src/mongo/db/update/rename_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/update/path_support.h:39, from src/mongo/db/update/rename_node.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/librollback_idl.a build/fedora/mongo/db/repl/rollback_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librollback_idl.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/rbnf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/shim_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include src/third_party/shim_asio.cpp ar rcsTD build/fedora/third_party/libshim_asio.a build/fedora/third_party/shim_asio.o Skipping ranlib for thin archive build/fedora/third_party/libshim_asio.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/schriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/util/debugger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/debugger.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/measunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/executor/network_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/network_interface.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/data_type.h:32, from src/mongo/bson/bsonobj.h:39, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/rename_node.h:31, from src/mongo/db/update/rename_node.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/ucol_sit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from /usr/include/string.h:519, from src/third_party/icu4c-57.1/source/common/cmemory.h:30, from src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp:21: In function 'strcat', inlined from 'ucol_sit_calculateWholeLocale(CollatorSpec*) [clone .part.0]' at src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp:393:9: /usr/include/bits/string_fortified.h:127:33: warning: '__strcat_chk' accessing 193 or more bytes at offsets 192 and 0 may overlap 1 byte at offset 192 [-Wrestrict] 127 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strcat', inlined from 'ucol_sit_calculateWholeLocale(CollatorSpec*) [clone .part.0]' at src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp:397:13: /usr/include/bits/string_fortified.h:127:33: warning: '__strcat_chk' accessing 161 or more bytes at offsets 192 and 32 may overlap 1 byte at offset 192 [-Wrestrict] 127 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strcat', inlined from 'ucol_sit_calculateWholeLocale(CollatorSpec*) [clone .part.0]' at src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp:402:13: /usr/include/bits/string_fortified.h:127:33: warning: '__strcat_chk' accessing 129 or more bytes at offsets 192 and 64 may overlap 1 byte at offset 192 [-Wrestrict] 127 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strcat', inlined from 'ucol_sit_calculateWholeLocale(CollatorSpec*) [clone .part.0]' at src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp:409:13: /usr/include/bits/string_fortified.h:127:33: warning: '__strcat_chk' accessing 97 or more bytes at offsets 192 and 96 may overlap 1 byte at offset 192 [-Wrestrict] 127 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strcat', inlined from 'ucol_sit_calculateWholeLocale(CollatorSpec*) [clone .part.0]' at src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp:415:13: /usr/include/bits/string_fortified.h:127:33: warning: '__strcat_chk' accessing 65 or more bytes at offsets 192 and 128 may overlap 1 byte at offset 192 [-Wrestrict] 127 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strcat', inlined from 'ucol_sit_calculateWholeLocale(CollatorSpec*) [clone .part.0]' at src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp:421:13: /usr/include/bits/string_fortified.h:127:33: warning: '__strcat_chk' accessing 33 or more bytes at offsets 192 and 160 may overlap 1 byte at offset 192 [-Wrestrict] 127 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/rpc/metadata/egress_metadata_hook_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/egress_metadata_hook_list.cpp ar rcsTD build/fedora/mongo/executor/libnetwork_interface.a build/fedora/mongo/executor/network_interface.o Skipping ranlib for thin archive build/fedora/mongo/executor/libnetwork_interface.a g++ -o build/fedora/mongo/db/pipeline/document_source_sort_by_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_sort_by_count.cpp g++ -o build/fedora/mongo/db/catalog/collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/collection.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog/collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog/collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog/collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort_by_count.h:31, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/uloc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from /usr/include/string.h:519, from src/third_party/icu4c-57.1/source/common/cmemory.h:30, from src/third_party/icu4c-57.1/source/common/cstring.h:29, from src/third_party/icu4c-57.1/source/common/uloc.cpp:39: In function 'strncpy', inlined from '_canonicalize(char const*, char*, int, unsigned int, UErrorCode*) [clone .part.0]' at src/third_party/icu4c-57.1/source/common/uloc.cpp:1679:13: /usr/include/bits/string_fortified.h:95:34: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/icu4c-57.1/source/common/uloc.cpp:39: src/third_party/icu4c-57.1/source/common/uloc.cpp: In function '_canonicalize(char const*, char*, int, unsigned int, UErrorCode*) [clone .part.0]': src/third_party/icu4c-57.1/source/common/cstring.h:35:57: note: length computed here 35 | #define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str) gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libservice_liaison_mongos.a build/fedora/mongo/db/service_liaison_mongos.o Skipping ranlib for thin archive build/fedora/mongo/db/libservice_liaison_mongos.a g++ -o build/fedora/mongo/db/query/datetime/date_time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/datetime/date_time_support.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_context.h:36, from src/mongo/db/query/datetime/date_time_support.h:35, from src/mongo/db/query/datetime/date_time_support.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/auth/internal_user_auth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/internal_user_auth.cpp ar rcsTD build/fedora/mongo/db/query/datetime/libdate_time_support.a build/fedora/mongo/db/query/datetime/date_time_support.o Skipping ranlib for thin archive build/fedora/mongo/db/query/datetime/libdate_time_support.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/locresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/ftdc/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/varint.cpp g++ -o build/fedora/mongo/base/status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/status.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucnvmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/s/query/cluster_cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/cluster_cursor_manager.cpp g++ -o build/fedora/mongo/s/commands/cluster_find_and_modify_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_find_and_modify_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/query/cluster_cursor_manager.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/query/cluster_cursor_manager.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/generic_cursor.h:34, from src/mongo/s/query/cluster_cursor_manager.h:36, from src/mongo/s/query/cluster_cursor_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/query/cluster_cursor_manager.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/query/cluster_cursor_manager.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/generic_cursor.h:34, from src/mongo/s/query/cluster_cursor_manager.h:36, from src/mongo/s/query/cluster_cursor_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_and_modify_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_and_modify_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/s/query/cluster_cursor_manager.cpp: In member function 'mongo::StatusWith > mongo::ClusterCursorManager::_detachCursor(mongo::WithLock, const mongo::NamespaceString&, mongo::CursorId)': src/mongo/s/query/cluster_cursor_manager.cpp:698:21: warning: redundant move in return statement [-Wredundant-move] 698 | return std::move(cursor); | ~~~~~~~~~^~~~~~~~ src/mongo/s/query/cluster_cursor_manager.cpp:698:21: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/query/cluster_cursor_manager.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/s/query/libcluster_cursor_manager.a build/fedora/mongo/s/query/cluster_cursor_manager.o Skipping ranlib for thin archive build/fedora/mongo/s/query/libcluster_cursor_manager.a g++ -o build/fedora/mongo/logger/logger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/logger.cpp g++ -o build/fedora/mongo/db/update/current_date_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/current_date_node.cpp g++ -o build/fedora/mongo/db/auth/authorization_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authorization_manager.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/current_date_node.h:31, from src/mongo/db/update/current_date_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/current_date_node.h:31, from src/mongo/db/update/current_date_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/current_date_node.h:31, from src/mongo/db/update/current_date_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/auth/auth_decorations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/auth_decorations.cpp g++ -o build/fedora/mongo/util/system_tick_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/system_tick_source.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/auth_decorations.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/auth_decorations.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/sasl_mechanism_registry.h:36, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/auth_decorations.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/auth_decorations.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/auth_decorations.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 g++ -o build/fedora/mongo/db/session_killer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/session_killer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/sasl_mechanism_registry.h:36, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/auth_decorations.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/auth/authentication_session.h:33, from src/mongo/db/auth/auth_decorations.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/auth/libauth.a build/fedora/mongo/db/auth/authorization_manager.o build/fedora/mongo/db/auth/authorization_session.o build/fedora/mongo/db/auth/auth_decorations.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauth.a g++ -o build/fedora/mongo/s/write_ops/chunk_manager_targeter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/chunk_manager_targeter.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/rbt_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/util/hex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/hex.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/tmutfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/version_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/version_mongos.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/write_ops/chunk_manager_targeter.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/write_ops/chunk_manager_targeter.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/write_ops/chunk_manager_targeter.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/write_ops/chunk_manager_targeter.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/write_ops/chunk_manager_targeter.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/update/update_driver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/update_driver.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/update/update_driver.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/update/update_driver.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/db/update/update_driver.h:36, from src/mongo/db/update/update_driver.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/update/update_driver.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/update/update_driver.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/db/update/update_driver.h:36, from src/mongo/db/update/update_driver.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:39, from src/mongo/db/update/update_driver.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/update/pop_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/pop_node.cpp ar rcsTD build/fedora/mongo/db/update/libupdate_driver.a build/fedora/mongo/db/update/update_driver.o Skipping ranlib for thin archive build/fedora/mongo/db/update/libupdate_driver.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/pop_node.h:31, from src/mongo/db/update/pop_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/pop_node.h:31, from src/mongo/db/update/pop_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/pop_node.h:31, from src/mongo/db/update/pop_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/update/pop_node.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_lmb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256: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::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/update/pop_node.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/fedora/mongo/util/options_parser/option_description.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/option_description.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/update/pop_node.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/tznames_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/index/expression_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/expression_params.cpp g++ -o build/fedora/mongo/db/index/s2_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/s2_common.cpp ar rcsTD build/fedora/third_party/libshim_timelib.a build/fedora/third_party/shim_timelib.o Skipping ranlib for thin archive build/fedora/third_party/libshim_timelib.a g++ -o build/fedora/mongo/db/pipeline/document_source_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_sort.cpp ar rcsTD build/fedora/mongo/db/index/libexpression_params.a build/fedora/mongo/db/index/expression_params.o build/fedora/mongo/db/index/s2_common.o Skipping ranlib for thin archive build/fedora/mongo/db/index/libexpression_params.a g++ -o build/fedora/mongo/bson/oid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/oid.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/index/sort_key_generator.h:31, from src/mongo/db/pipeline/document_source_sort.h:31, from src/mongo/db/pipeline/document_source_sort.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort.h:32, from src/mongo/db/pipeline/document_source_sort.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort.h:32, from src/mongo/db/pipeline/document_source_sort.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/index/sort_key_generator.h:31, from src/mongo/db/pipeline/document_source_sort.h:31, from src/mongo/db/pipeline/document_source_sort.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort.h:32, from src/mongo/db/pipeline/document_source_sort.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort.h:32, from src/mongo/db/pipeline/document_source_sort.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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/rbbirb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/util/options_parser/options_parser_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/options_parser_init.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/index/sort_key_generator.h:31, from src/mongo/db/pipeline/document_source_sort.h:31, from src/mongo/db/pipeline/document_source_sort.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/util/options_parser/liboptions_parser_init.a build/fedora/mongo/util/options_parser/options_parser_init.o Skipping ranlib for thin archive build/fedora/mongo/util/options_parser/liboptions_parser_init.a g++ -o build/fedora/mongo/db/ftdc/file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/file_writer.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sort.h:32, from src/mongo/db/pipeline/document_source_sort.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/client/read_preference.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/read_preference.cpp ar rcsTD build/fedora/mongo/client/libread_preference.a build/fedora/mongo/client/read_preference.o Skipping ranlib for thin archive build/fedora/mongo/client/libread_preference.a g++ -o build/fedora/mongo/db/index/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/sort_key_generator.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_current_op.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/brktrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/base/initializer_dependency_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/initializer_dependency_graph.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/expression_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/expression_context.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression_context.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/pipeline/expression_context.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/pipeline/expression_context.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/stub_mongo_process_interface.h:32, from src/mongo/db/pipeline/expression_context.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/db/pipeline/stub_mongo_process_interface.h:32, from src/mongo/db/pipeline/expression_context.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_current_op.h:31, from src/mongo/db/pipeline/document_source_current_op.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/pipeline/expression_context.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/stub_mongo_process_interface.h:32, from src/mongo/db/pipeline/expression_context.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/auth/restriction_environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/restriction_environment.cpp ar rcsTD build/fedora/mongo/db/pipeline/libexpression_context.a build/fedora/mongo/db/pipeline/expression_context.o build/fedora/mongo/db/pipeline/variables.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libexpression_context.a g++ -o build/fedora/mongo/db/sessions_collection_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/sessions_collection_sharded.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/sessions_collection_sharded.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/sessions_collection_sharded.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ ar rcsTD build/fedora/mongo/db/auth/libauthentication_restriction.a build/fedora/mongo/db/auth/restriction_environment.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthentication_restriction.a g++ -o build/fedora/mongo/client/async_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/async_client.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/sessions_collection_sharded.h:33, from src/mongo/db/sessions_collection_sharded.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/sessions_collection_sharded.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/sessions_collection_sharded.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/sessions_collection_sharded.h:33, from src/mongo/db/sessions_collection_sharded.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/sessions_collection_sharded.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/client/libasync_client.a build/fedora/mongo/client/async_client.o Skipping ranlib for thin archive build/fedora/mongo/client/libasync_client.a g++ -o build/fedora/mongo/db/namespace_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/namespace_string.cpp g++ -o build/fedora/mongo/db/concurrency/global_lock_acquisition_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/concurrency/global_lock_acquisition_tracker.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/namespace_string.h:36, from src/mongo/db/namespace_string.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< (mongo::StringData const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::NamespaceString::makeListIndexesNSS(mongo::StringData, mongo::StringData)' at src/mongo/db/namespace_string.cpp:119:79: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 495] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/libnamespace_string.a build/fedora/mongo/db/namespace_string.o Skipping ranlib for thin archive build/fedora/mongo/db/libnamespace_string.a g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/bytestriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestriebuilder.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:30: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:30: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:54:21: warning: redundant move in return statement [-Wredundant-move] 54 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:54:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucnvsel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/s/commands/cluster_multicast_gen.h --output build/fedora/mongo/s/commands/cluster_multicast_gen.cpp src/mongo/s/commands/cluster_multicast.idl g++ -o build/fedora/mongo/s/commands/cluster_multicast_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/commands/cluster_multicast_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/commands/cluster_multicast_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/commands/cluster_multicast_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/commands/cluster_multicast_gen.h:16, from build/fedora/mongo/s/commands/cluster_multicast_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call g++ -o build/fedora/mongo/executor/network_interface_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/network_interface_tl.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/commands/cluster_multicast_gen.h:16, from build/fedora/mongo/s/commands/cluster_multicast_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/s/commands/cluster_multicast_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/executor/connection_pool_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/connection_pool_tl.cpp In file included from src/mongo/transport/session.h:38, from src/mongo/db/service_context.h:46, from src/mongo/client/async_client.h:33, from src/mongo/executor/connection_pool_tl.h:33, from src/mongo/executor/connection_pool_tl.cpp:33: src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::executor::connection_pool_tl::TLConnection::setup(mongo::Milliseconds, mongo::executor::ConnectionPool::ConnectionInterface::SetupCallback)::::&; Args = {mongo::executor::RemoteCommandResponse}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:840:71: required from 'mongo::future_details::Future mongo::future_details::Future::then(Func&&) && [with Func = mongo::executor::connection_pool_tl::TLConnection::setup(mongo::Milliseconds, mongo::executor::ConnectionPool::ConnectionInterface::SetupCallback)::::; Result = void; = void; T = mongo::executor::RemoteCommandResponse]' src/mongo/executor/connection_pool_tl.cpp:199:22: required from here src/mongo/util/future.h:175:32: warning: redundant move in return statement [-Wredundant-move] 175 | return std::move(status); | ^ src/mongo/util/future.h:175:32: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/bson/bsontypes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bsontypes.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bsontypes.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::BSONType, mongo::StringMapTraits>': src/mongo/bson/bsontypes.cpp:96:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/liblogical_clock.a build/fedora/mongo/db/logical_clock.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_clock.a g++ -o build/fedora/mongo/transport/transport_layer_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/transport/transport_layer_asio.cpp ar rcsTD build/fedora/mongo/executor/libnetwork_interface_tl.a build/fedora/mongo/executor/connection_pool_tl.o build/fedora/mongo/executor/network_interface_tl.o Skipping ranlib for thin archive build/fedora/mongo/executor/libnetwork_interface_tl.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/rpc/legacy_request_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/legacy_request_builder.cpp src/mongo/transport/transport_layer_asio.cpp: In member function 'virtual mongo::transport::BatonHandle mongo::transport::TransportLayerASIO::makeBaton(mongo::OperationContext*)': src/mongo/transport/transport_layer_asio.cpp:873:21: warning: redundant move in return statement [-Wredundant-move] 873 | return std::move(baton); | ~~~~~~~~~^~~~~~~ src/mongo/transport/transport_layer_asio.cpp:873:21: note: remove 'std::move' call g++ -o build/fedora/mongo/s/write_ops/batched_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/batched_command_response.cpp In file included from src/mongo/transport/session.h:38, from src/mongo/transport/transport_layer.h:35, from src/mongo/transport/transport_layer_asio.h:41, from src/mongo/transport/transport_layer_asio.cpp:33: src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::&; Args = {mongo::future_details::FakeVoid}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:840:71: required from 'mongo::future_details::Future mongo::future_details::Future::then(Func&&) && [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::; Result = void; = void; T = mongo::future_details::FakeVoid]' src/mongo/util/future.h:1246:37: required from 'auto mongo::future_details::Future::then(Func&&) && [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::]' src/mongo/transport/transport_layer_asio.cpp:589:26: required from here src/mongo/util/future.h:175:32: warning: redundant move in return statement [-Wredundant-move] 175 | return std::move(status); | ^ src/mongo/util/future.h:175:32: note: remove 'std::move' call src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::&; Args = {mongo::Status}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:914:55: required from 'mongo::future_details::Future mongo::future_details::Future::onError(Func&&) && [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::; Result = mongo::future_details::FakeVoid; = void; T = mongo::future_details::FakeVoid]' src/mongo/util/future.h:1251:40: required from 'mongo::future_details::Future mongo::future_details::Future::onError(Func&&) && [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::]' src/mongo/transport/session_asio.h:675:21: required from here src/mongo/util/future.h:175:32: warning: redundant move in return statement [-Wredundant-move] src/mongo/util/future.h:175:32: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/write_ops/batched_command_response.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/write_ops/batched_command_response.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/s/write_ops/batched_command_response.h:36, from src/mongo/s/write_ops/batched_command_response.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/write_ops/batched_command_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/write_ops/batched_command_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/s/write_ops/batched_command_response.h:36, from src/mongo/s/write_ops/batched_command_response.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/write_ops/batched_command_response.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/smallintformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/ushape.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/cecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/auth/role_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/role_graph.cpp ar rcsTD build/fedora/mongo/db/auth/librole_graph.a build/fedora/mongo/db/auth/role_graph.o build/fedora/mongo/db/auth/role_graph_builtin_roles.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/librole_graph.a g++ -o build/fedora/mongo/util/processinfo_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/processinfo_linux.cpp ar rcsTD build/fedora/mongo/db/libserver_options_servers.a build/fedora/mongo/db/server_options_server_helpers.o Skipping ranlib for thin archive build/fedora/mongo/db/libserver_options_servers.a g++ -o build/fedora/mongo/s/commands/cluster_whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/loclikely.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/time_proof_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/time_proof_service.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_count.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.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 g++ -o build/fedora/mongo/db/pipeline/pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/pipeline.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/pipeline.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/pipeline.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/pipeline.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/db/pipeline/pipeline.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_count.h:31, from src/mongo/db/pipeline/document_source_count.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/pipeline.cpp: In static member function 'static mongo::StatusWith > mongo::Pipeline::createTopLevelOrFacetPipeline(mongo::Pipeline::SourceContainer, const boost::intrusive_ptr&, bool)': src/mongo/db/pipeline/pipeline.cpp:129:21: warning: redundant move in return statement [-Wredundant-move] 129 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/pipeline.cpp:129:21: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_check_resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_check_resume_token.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/db/pipeline/pipeline.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_redact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_redact.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_internal_split_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_redact.h:32, from src/mongo/db/pipeline/document_source_redact.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_check_invalidate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:31, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_bucket_auto.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_bucket_auto.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulation_statement.h:34, from src/mongo/db/pipeline/document_source_bucket_auto.h:31, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulation_statement.h:34, from src/mongo/db/pipeline/document_source_bucket_auto.h:31, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:31, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:31, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::function >(mongo::BSONElement, const boost::intrusive_ptr&)>, mongo::StringMapTraits>': src/mongo/db/pipeline/document_source.cpp:54:26: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::BSONElement, const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::BSONElement, const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::BSONElement, const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function >(mongo::BSONElement, const boost::intrusive_ptr&)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/tee_buffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/tee_buffer.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_add_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_add_fields.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/tee_buffer.h:35, from src/mongo/db/pipeline/tee_buffer.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/tee_buffer.h:35, from src/mongo/db/pipeline/tee_buffer.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/tee_buffer.h:35, from src/mongo/db/pipeline/tee_buffer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/tee_buffer.h:36, from src/mongo/db/pipeline/tee_buffer.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/tee_buffer.h:36, from src/mongo/db/pipeline/tee_buffer.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/tee_buffer.h:35, from src/mongo/db/pipeline/tee_buffer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, boost::intrusive_ptr, mongo::StringMapTraits>': src/mongo/db/pipeline/parsed_inclusion_projection.h:171:49: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/tee_buffer.h:36, from src/mongo/db/pipeline/tee_buffer.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_add_fields.h:31, from src/mongo/db/pipeline/document_source_add_fields.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_internal_inhibit_optimization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_lookup.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:31, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup.h:33, from src/mongo/db/pipeline/document_source_lookup.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_sample.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_sample.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample.h:31, from src/mongo/db/pipeline/document_source_sample.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_list_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_list_sessions.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_limit.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/document_source_list_sessions.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/document_source_list_sessions.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/document_source_list_sessions.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/document_source_list_sessions.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/document_source_list_sessions.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/document_source_list_sessions.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/document_source_list_sessions.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_limit.h:31, from src/mongo/db/pipeline/document_source_limit.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_change_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_change_stream.cpp g++ -o build/fedora/mongo/db/pipeline/sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/sequential_document_cache.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/sequential_document_cache.h:35, from src/mongo/db/pipeline/sequential_document_cache.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/sequential_document_cache.h:35, from src/mongo/db/pipeline/sequential_document_cache.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_group.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulation_statement.h:34, from src/mongo/db/pipeline/document_source_group.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/accumulator.h:39, from src/mongo/db/pipeline/accumulation_statement.h:34, from src/mongo/db/pipeline/document_source_group.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/pipeline/document_source_group.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_group.h:36, from src/mongo/db/pipeline/document_source_group.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_group.h:36, from src/mongo/db/pipeline/document_source_group.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream.h:31, from src/mongo/db/pipeline/document_source_change_stream.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/pipeline/document_source_group.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:126:21: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_group.cpp:126:21: note: remove 'std::move' call src/mongo/db/pipeline/document_source_group.cpp: In member function 'mongo::DocumentSource::GetNextResult mongo::DocumentSourceGroup::getNextStreaming()': src/mongo/db/pipeline/document_source_group.cpp:164:21: warning: redundant move in return statement [-Wredundant-move] 164 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_group.cpp:164:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_group.h:36, from src/mongo/db/pipeline/document_source_group.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_index_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_index_stats.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/pipeline/document_source_index_stats.h:31, from src/mongo/db/pipeline/document_source_index_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_index_stats.h:32, from src/mongo/db/pipeline/document_source_index_stats.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_index_stats.h:32, from src/mongo/db/pipeline/document_source_index_stats.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/pipeline/document_source_index_stats.h:31, from src/mongo/db/pipeline/document_source_index_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_index_stats.h:32, from src/mongo/db/pipeline/document_source_index_stats.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_index_stats.h:32, from src/mongo/db/pipeline/document_source_index_stats.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/pipeline/document_source_index_stats.h:31, from src/mongo/db/pipeline/document_source_index_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_tee_consumer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_tee_consumer.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_index_stats.h:32, from src/mongo/db/pipeline/document_source_index_stats.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_merge_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_merge_cursors.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_tee_consumer.h:34, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/pipeline/mongo_process_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/mongo_process_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_merge_cursors.h:31, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/mongo_process_common.h:33, from src/mongo/db/pipeline/mongo_process_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/mongo_process_interface.h:42, from src/mongo/db/pipeline/mongo_process_common.h:34, from src/mongo/db/pipeline/mongo_process_common.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/mongo_process_interface.h:42, from src/mongo/db/pipeline/mongo_process_common.h:34, from src/mongo/db/pipeline/mongo_process_common.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_graph_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_graph_lookup.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_change_stream_transform.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_change_stream_transform.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:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:602:21: warning: redundant move in return statement [-Wredundant-move] 602 | return std::move(newSource); | ~~~~~~~~~^~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp:602:21: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_graph_lookup.h:31, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_change_stream_transform.h:31, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_facet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_facet.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_unwind.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_unwind.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.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 In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_unwind.h:31, from src/mongo/db/pipeline/document_source_unwind.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_match.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_lookup_change_post_image.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/matcher.h:37, from src/mongo/db/pipeline/document_source_match.h:35, from src/mongo/db/pipeline/document_source_match.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/matcher.h:37, from src/mongo/db/pipeline/document_source_match.h:35, from src/mongo/db/pipeline/document_source_match.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/db/pipeline/document_source_match.h:34, from src/mongo/db/pipeline/document_source_match.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/matcher.h:38, from src/mongo/db/pipeline/document_source_match.h:35, from src/mongo/db/pipeline/document_source_match.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:38, from src/mongo/db/pipeline/document_source_match.h:35, from src/mongo/db/pipeline/document_source_match.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/db/pipeline/document_source_match.h:34, from src/mongo/db/pipeline/document_source_match.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document_source_match.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.h:38, from src/mongo/db/pipeline/document_source_match.h:35, from src/mongo/db/pipeline/document_source_match.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:31, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_bucket.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_bucket.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_sample_from_random_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_bucket.h:31, from src/mongo/db/pipeline/document_source_bucket.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:31, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_single_document_transformation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_single_document_transformation.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_list_local_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_list_local_cursors.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_replace_root.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_replace_root.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/document_source_list_local_cursors.h:33, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_cursors.h:36, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_cursors.h:36, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/document_source_list_local_cursors.h:33, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_cursors.h:36, from src/mongo/db/pipeline/document_source_list_local_cursors.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_cursors.h:36, from src/mongo/db/pipeline/document_source_list_local_cursors.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/document_source_list_local_cursors.h:33, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/document_source_list_local_cursors.cpp: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceListLocalCursors::getNext()': src/mongo/db/pipeline/document_source_list_local_cursors.cpp:53:25: warning: redundant move in return statement [-Wredundant-move] 53 | return std::move(doc); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_list_local_cursors.cpp:53:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_list_local_cursors.h:36, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/document_source_replace_root.h:31, from src/mongo/db/pipeline/document_source_replace_root.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/document_source_sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_sequential_document_cache.cpp g++ -o build/fedora/mongo/db/pipeline/document_source_out.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_out.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/pipeline/document_source.h:41, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:31, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_out.h:31, from src/mongo/db/pipeline/document_source_out.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/unorm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/curop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/curop.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop.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 ar rcsTD build/fedora/mongo/db/pipeline/libpipeline.a build/fedora/mongo/db/pipeline/document_source.o build/fedora/mongo/db/pipeline/document_source_add_fields.o build/fedora/mongo/db/pipeline/document_source_bucket.o build/fedora/mongo/db/pipeline/document_source_bucket_auto.o build/fedora/mongo/db/pipeline/document_source_change_stream.o build/fedora/mongo/db/pipeline/document_source_change_stream_close_cursor.o build/fedora/mongo/db/pipeline/document_source_change_stream_transform.o build/fedora/mongo/db/pipeline/document_source_check_invalidate.o build/fedora/mongo/db/pipeline/document_source_check_resume_token.o build/fedora/mongo/db/pipeline/document_source_coll_stats.o build/fedora/mongo/db/pipeline/document_source_count.o build/fedora/mongo/db/pipeline/document_source_current_op.o build/fedora/mongo/db/pipeline/document_source_facet.o build/fedora/mongo/db/pipeline/document_source_geo_near.o build/fedora/mongo/db/pipeline/document_source_graph_lookup.o build/fedora/mongo/db/pipeline/document_source_group.o build/fedora/mongo/db/pipeline/document_source_index_stats.o build/fedora/mongo/db/pipeline/document_source_internal_inhibit_optimization.o build/fedora/mongo/db/pipeline/document_source_internal_split_pipeline.o build/fedora/mongo/db/pipeline/document_source_limit.o build/fedora/mongo/db/pipeline/document_source_list_local_cursors.o build/fedora/mongo/db/pipeline/document_source_list_local_sessions.o build/fedora/mongo/db/pipeline/document_source_list_sessions.o build/fedora/mongo/db/pipeline/document_source_lookup.o build/fedora/mongo/db/pipeline/document_source_lookup_change_post_image.o build/fedora/mongo/db/pipeline/document_source_match.o build/fedora/mongo/db/pipeline/document_source_merge_cursors.o build/fedora/mongo/db/pipeline/document_source_out.o build/fedora/mongo/db/pipeline/document_source_project.o build/fedora/mongo/db/pipeline/document_source_redact.o build/fedora/mongo/db/pipeline/document_source_replace_root.o build/fedora/mongo/db/pipeline/document_source_sample.o build/fedora/mongo/db/pipeline/document_source_sample_from_random_cursor.o build/fedora/mongo/db/pipeline/document_source_sequential_document_cache.o build/fedora/mongo/db/pipeline/document_source_single_document_transformation.o build/fedora/mongo/db/pipeline/document_source_skip.o build/fedora/mongo/db/pipeline/document_source_sort.o build/fedora/mongo/db/pipeline/document_source_sort_by_count.o build/fedora/mongo/db/pipeline/cluster_aggregation_planner.o build/fedora/mongo/db/pipeline/document_source_tee_consumer.o build/fedora/mongo/db/pipeline/document_source_unwind.o build/fedora/mongo/db/pipeline/mongo_process_common.o build/fedora/mongo/db/pipeline/pipeline.o build/fedora/mongo/db/pipeline/sequential_document_cache.o build/fedora/mongo/db/pipeline/tee_buffer.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libpipeline.a g++ -o build/fedora/mongo/db/pipeline/parsed_aggregation_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/parsed_aggregation_projection.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/parsed_aggregation_projection.h:36, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/parsed_aggregation_projection.h:36, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/parsed_aggregation_projection.h:36, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, boost::intrusive_ptr, mongo::StringMapTraits>': src/mongo/db/pipeline/parsed_inclusion_projection.h:171:49: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/platform/atomic_word.h:31, from src/mongo/base/counter.h:33, from src/mongo/db/commands.h:35, from src/mongo/db/curop.h:35, from src/mongo/db/curop.cpp:35: In function 'strncpy', inlined from 'mongo::ThreadSafeString::operator=(mongo::StringData)' at src/mongo/util/thread_safe_string.h:64:16, inlined from 'mongo::ProgressMeter::ProgressMeter()' at src/mongo/util/progress_meter.h:53:17, inlined from 'mongo::CurOp::CurOp(mongo::OperationContext*, mongo::CurOp::CurOpStack*)' at src/mongo/db/curop.cpp:274:72: /usr/include/bits/string_fortified.h:95:34: warning: 'strncpy' output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libcurop.a build/fedora/mongo/db/curop.o Skipping ranlib for thin archive build/fedora/mongo/db/libcurop.a g++ -o build/fedora/mongo/logger/log_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/log_component.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/bytestrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/rpc/get_status_from_command_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/get_status_from_command_result.cpp g++ -o build/fedora/mongo/rpc/write_concern_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/write_concern_error_detail.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/rpc/get_status_from_command_result.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/commands/user_management_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/user_management_commands_common.cpp ar rcsTD build/fedora/mongo/rpc/libcommand_status.a build/fedora/mongo/rpc/get_status_from_command_result.o build/fedora/mongo/rpc/write_concern_error_detail.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libcommand_status.a g++ -o build/fedora/mongo/util/procparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/procparser.cpp g++ -o build/fedora/mongo/s/client/shard_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/shard_registry.cpp ar rcsTD build/fedora/mongo/util/libprocparser.a build/fedora/mongo/util/procparser.o Skipping ranlib for thin archive build/fedora/mongo/util/libprocparser.a /usr/bin/python3 src/mongo/util/generate_icu_init_cpp.py -o build/fedora/mongo/util/icu_init.cpp -i src/third_party/icu4c-57.1/source/mongo_sources/icudt57l.dat g++ -o build/fedora/mongo/util/icu_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc build/fedora/mongo/util/icu_init.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/transport/service_entry_point_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/service_entry_point_impl.cpp ar rcsTD build/fedora/mongo/util/libicu_init.a build/fedora/mongo/util/icu_init.o Skipping ranlib for thin archive build/fedora/mongo/util/libicu_init.a g++ -o build/fedora/mongo/transport/service_state_machine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/service_state_machine.cpp g++ -o build/fedora/mongo/platform/posix_fadvise.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/posix_fadvise.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/s2/s2polyline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2polyline.cc src/third_party/s2/s2polyline.cc: In member function 'void S2Polyline::Init(const std::vector >&)': src/third_party/s2/s2polyline.cc:57:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 57 | memcpy(vertices_, &vertices[0], num_vertices_ * sizeof(vertices_[0])); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2polyline.cc:10: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ src/third_party/s2/s2polyline.cc: In constructor 'S2Polyline::S2Polyline(const S2Polyline*)': src/third_party/s2/s2polyline.cc:106:9: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 106 | memcpy(vertices_, src->vertices_, num_vertices_ * sizeof(vertices_[0])); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2polyline.cc:10: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/transport/service_state_machine.h:33, from src/mongo/transport/service_state_machine.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::appendIntegral(unsigned long long, int)mongo::StringBuilderImpl&' at src/mongo/bson/util/builder.h:520:19, inlined from 'mongo::StringBuilderImpl::operator<<(unsigned long long)' at src/mongo/bson/util/builder.h:417:30, inlined from 'mongoutils::str::stream::operator<< (unsigned long long const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::ServiceStateMachine::ServiceStateMachine(mongo::ServiceContext*, std::shared_ptr, mongo::transport::Mode)' at src/mongo/transport/service_state_machine.cpp:230:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 508] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/logical_time_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_time_metadata_hook.cpp ar rcsTD build/fedora/mongo/transport/libservice_entry_point.a build/fedora/mongo/transport/service_entry_point_impl.o build/fedora/mongo/transport/service_state_machine.o Skipping ranlib for thin archive build/fedora/mongo/transport/libservice_entry_point.a g++ -o build/fedora/mongo/s/query/store_possible_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/store_possible_cursor.cpp ar rcsTD build/fedora/mongo/db/liblogical_time_metadata_hook.a build/fedora/mongo/db/logical_time_metadata_hook.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_time_metadata_hook.a g++ -o build/fedora/mongo/db/concurrency/d_concurrency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/concurrency/d_concurrency.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/query/store_possible_cursor.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/query/store_possible_cursor.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/s/query/store_possible_cursor.h:31, from src/mongo/s/query/store_possible_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/query/store_possible_cursor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/query/store_possible_cursor.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/s/query/store_possible_cursor.h:31, from src/mongo/s/query/store_possible_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/safe_num.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/safe_num.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/query/store_possible_cursor.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/liblogical_session_cache_factory_mongos.a build/fedora/mongo/db/logical_session_cache_factory_mongos.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_session_cache_factory_mongos.a g++ -o build/fedora/mongo/client/authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/authenticate.cpp src/mongo/client/authenticate.cpp: In function 'mongo::StatusWith > mongo::auth::{anonymous}::extractDBField(const mongo::BSONObj&)': src/mongo/client/authenticate.cpp:83:21: warning: redundant move in return statement [-Wredundant-move] 83 | return std::move(db); | ~~~~~~~~~^~~~ src/mongo/client/authenticate.cpp:83:21: note: remove 'std::move' call src/mongo/client/authenticate.cpp: In function 'mongo::auth::AuthRequest mongo::auth::{anonymous}::createX509AuthCmd(const mongo::BSONObj&, mongo::StringData)': src/mongo/client/authenticate.cpp:130:21: warning: redundant move in return statement [-Wredundant-move] 130 | return std::move(request); | ~~~~~~~~~^~~~~~~~~ src/mongo/client/authenticate.cpp:130:21: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationdatabuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/uset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/curramt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationkeys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/pluralaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/ftdc/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/util.cpp g++ -o build/fedora/mongo/db/ftdc/controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/controller.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/system/detail/generic_category_message.hpp:15, from /usr/include/boost/system/detail/generic_category.hpp:14, from /usr/include/boost/system/detail/error_condition.hpp:14, from /usr/include/boost/system/detail/error_code.hpp:14, from /usr/include/boost/system/error_code.hpp:13, from /usr/include/boost/filesystem/path_traits.hpp:22, from /usr/include/boost/filesystem/path.hpp:26, from src/mongo/db/ftdc/util.h:31, from src/mongo/db/ftdc/util.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/ftdc/compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/compressor.cpp g++ -o build/fedora/mongo/db/ftdc/collector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/collector.cpp g++ -o build/fedora/mongo/util/fail_point_server_parameter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/fail_point_server_parameter.cpp ar rcsTD build/fedora/mongo/db/ftdc/libftdc.a build/fedora/mongo/db/ftdc/block_compressor.o build/fedora/mongo/db/ftdc/collector.o build/fedora/mongo/db/ftdc/compressor.o build/fedora/mongo/db/ftdc/controller.o build/fedora/mongo/db/ftdc/decompressor.o build/fedora/mongo/db/ftdc/file_manager.o build/fedora/mongo/db/ftdc/file_reader.o build/fedora/mongo/db/ftdc/file_writer.o build/fedora/mongo/db/ftdc/util.o build/fedora/mongo/db/ftdc/varint.o Skipping ranlib for thin archive build/fedora/mongo/db/ftdc/libftdc.a g++ -o build/fedora/mongo/db/pipeline/parsed_add_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/parsed_add_fields.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_add_fields.h:33, from src/mongo/db/pipeline/parsed_add_fields.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_add_fields.h:33, from src/mongo/db/pipeline/parsed_add_fields.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_add_fields.h:33, from src/mongo/db/pipeline/parsed_add_fields.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/multi_key_path_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/multi_key_path_tracker.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_add_fields.h:35, from src/mongo/db/pipeline/parsed_add_fields.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_add_fields.h:35, from src/mongo/db/pipeline/parsed_add_fields.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_add_fields.h:33, from src/mongo/db/pipeline/parsed_add_fields.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, boost::intrusive_ptr, mongo::StringMapTraits>': src/mongo/db/pipeline/parsed_inclusion_projection.h:171:49: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/query/async_results_merger_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/s/query/async_results_merger_params_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_add_fields.h:35, from src/mongo/db/pipeline/parsed_add_fields.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from build/fedora/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from build/fedora/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:16, from build/fedora/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:16, from build/fedora/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/icu4c-57.1/source/common/utrace.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 /usr/bin/python3 src/mongo/db/fts/unicode/gen_diacritic_list.py src/third_party/unicode-8.0.0/PropList.txt build/fedora/mongo/db/fts/unicode/codepoints_diacritic_list.cpp /builddir/build/BUILD/mongo-r4.0.3/src/mongo/db/fts/unicode/gen_diacritic_list.py:23: DeprecationWarning: 'U' mode is deprecated proplist_file = open(unicode_proplist_file, 'rU') src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ g++ -o build/fedora/mongo/db/fts/unicode/codepoints_diacritic_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/fts/unicode/codepoints_diacritic_list.cpp src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/identifier_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/name2uni.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/matcher/expression_geo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_geo.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from build/fedora/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_geo.h:36, from src/mongo/db/matcher/expression_geo.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_geo.h:36, from src/mongo/db/matcher/expression_geo.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/logger/message_event.h:35, from src/mongo/logger/message_log_domain.h:35, from src/mongo/logger/component_message_log_domain.h:31, from src/mongo/logger/log_manager.h:33, from src/mongo/logger/logger.h:30, from src/third_party/s2/base/logging.h:20, from src/third_party/s2/s2.h:23, from src/mongo/db/geo/s2.h:40, from src/mongo/db/geo/big_polygon.h:33, from src/mongo/db/geo/shapes.h:36, from src/mongo/db/geo/geometry_container.h:34, from src/mongo/db/matcher/expression_geo.h:35, from src/mongo/db/matcher/expression_geo.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_geo.h:37, from src/mongo/db/matcher/expression_geo.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_geo.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/logger/message_event.h:35, from src/mongo/logger/message_log_domain.h:35, from src/mongo/logger/component_message_log_domain.h:31, from src/mongo/logger/log_manager.h:33, from src/mongo/logger/logger.h:30, from src/third_party/s2/base/logging.h:20, from src/third_party/s2/s2.h:23, from src/mongo/db/geo/s2.h:40, from src/mongo/db/geo/big_polygon.h:33, from src/mongo/db/geo/shapes.h:36, from src/mongo/db/geo/geometry_container.h:34, from src/mongo/db/matcher/expression_geo.h:35, from src/mongo/db/matcher/expression_geo.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:415:21: warning: redundant move in return statement [-Wredundant-move] 415 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:415:21: note: remove 'std::move' call g++ -o build/fedora/mongo/db/update/object_replace_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/object_replace_node.cpp 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:472:21: warning: redundant move in return statement [-Wredundant-move] 472 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:472:21: 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:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/tridpars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/uspoof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/bson/mutable/element.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/mutable/element.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/uregex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/write_ops/write_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/write_error_detail.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/commands/cluster_update_zone_key_range_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp g++ -o build/fedora/mongo/bson/bsonmisc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bsonmisc.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_update_zone_key_range_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_update_zone_key_range_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/unicode/codepoints_diacritic_map.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/unicode/codepoints_diacritic_map.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/scriptset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/write_ops/write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/write_op.cpp g++ -o build/fedora/mongo/db/update/update_array_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/update_array_node.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/update/update_array_node.h:35, from src/mongo/db/update/update_array_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/update/update_array_node.h:35, from src/mongo/db/update/update_array_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/update/update_array_node.h:35, from src/mongo/db/update/update_array_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/itoa.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/itoa.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/visibledigits.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/dcfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp 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:46:21: warning: redundant move in return statement [-Wredundant-move] 46 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_array_node.cpp:46:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/unordered_fields_bsonobj_comparator.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:75:21: warning: redundant move in return statement [-Wredundant-move] 75 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:75:21: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/concurrency/lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/concurrency/lock_manager.cpp g++ -o build/fedora/mongo/db/concurrency/lock_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/concurrency/lock_stats.cpp /usr/bin/python3 src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.err src/mongo/shell/error_codes.tpl.js=build/fedora/mongo/shell/error_codes.js /usr/bin/python3 site_scons/site_tools/jstoh.py build/fedora/mongo/shell/mongo.cpp src/mongo/shell/assert.js src/mongo/shell/bulk_api.js src/mongo/shell/collection.js src/mongo/shell/crud_api.js src/mongo/shell/db.js build/fedora/mongo/shell/error_codes.js src/mongo/shell/explainable.js src/mongo/shell/explain_query.js src/mongo/shell/mongo.js src/mongo/shell/mr.js src/mongo/shell/query.js src/mongo/shell/session.js src/mongo/shell/types.js src/mongo/shell/utils_auth.js src/mongo/shell/utils.js src/mongo/shell/utils_sh.js g++ -o build/fedora/mongo/shell/mongo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/shell/mongo.cpp ar rcsTD build/fedora/mongo/db/concurrency/liblock_manager.a build/fedora/mongo/db/concurrency/d_concurrency.o build/fedora/mongo/db/concurrency/global_lock_acquisition_tracker.o build/fedora/mongo/db/concurrency/lock_manager.o build/fedora/mongo/db/concurrency/lock_state.o build/fedora/mongo/db/concurrency/lock_stats.o Skipping ranlib for thin archive build/fedora/mongo/db/concurrency/liblock_manager.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationrootelements.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/locdispnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/pipeline/aggregation_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/aggregation_request.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/commands/profile_gen.h --output build/fedora/mongo/db/commands/profile_gen.cpp src/mongo/db/commands/profile.idl g++ -o build/fedora/mongo/db/commands/profile_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/profile_common.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/aggregation_request.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/aggregation_request.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/aggregation_request.h:34, from src/mongo/db/pipeline/aggregation_request.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/aggregation_request.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/aggregation_request.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/aggregation_request.h:34, from src/mongo/db/pipeline/aggregation_request.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/profile_common.h:32, from src/mongo/db/commands/profile_common.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/profile_common.h:32, from src/mongo/db/commands/profile_common.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/profile_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/profile_common.h:32, from src/mongo/db/commands/profile_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/profile_common.h:32, from src/mongo/db/commands/profile_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/aggregation_request.cpp: In static member function 'static mongo::StatusWith > > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.cpp:83:21: warning: redundant move in return statement [-Wredundant-move] 83 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.cpp:83:21: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/profile_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/aggregation_request.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/profile_common.h:32, from src/mongo/db/commands/profile_common.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/inputext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/update/arithmetic_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/arithmetic_node.cpp g++ -o build/fedora/mongo/s/commands/cluster_list_databases_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_list_databases_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/arithmetic_node.h:31, from src/mongo/db/update/arithmetic_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/arithmetic_node.h:31, from src/mongo/db/update/arithmetic_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/arithmetic_node.h:31, from src/mongo/db/update/arithmetic_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_databases_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_databases_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 g++ -o build/fedora/mongo/util/exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/exit.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/update/set_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/set_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/set_node.h:31, from src/mongo/db/update/set_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/set_node.h:31, from src/mongo/db/update/set_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/set_node.h:31, from src/mongo/db/update/set_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/util/bson_extract.h:33, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:34: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/update/path_support.h:39, from src/mongo/db/update/set_node.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/command_generic_argument.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/command_generic_argument.cpp g++ -o build/fedora/mongo/s/catalog/sharding_catalog_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/sharding_catalog_client.cpp ar rcsTD build/fedora/mongo/db/libcommand_generic_argument.a build/fedora/mongo/db/command_generic_argument.o Skipping ranlib for thin archive build/fedora/mongo/db/libcommand_generic_argument.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/wire_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/wire_version.cpp g++ -o build/fedora/mongo/base/validate_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/validate_locale.cpp ar rcsTD build/fedora/mongo/s/catalog/libsharding_catalog_client.a build/fedora/mongo/s/catalog/sharding_catalog_client.o Skipping ranlib for thin archive build/fedora/mongo/s/catalog/libsharding_catalog_client.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/uvector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/s2/s2polygonbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2polygonbuilder.cc gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/csrutf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/executor/async_multicaster.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/async_multicaster.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/uregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/kill_sessions_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/kill_sessions_common.cpp ar rcsTD build/fedora/mongo/executor/libasync_multicaster.a build/fedora/mongo/executor/async_multicaster.o Skipping ranlib for thin archive build/fedora/mongo/executor/libasync_multicaster.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationcompare.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/util/options_parser/startup_option_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/startup_option_init.cpp g++ -o build/fedora/mongo/logger/rotatable_file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/rotatable_file_writer.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/tmunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/udatamem.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/matcher/expression_internal_expr_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_internal_expr_eq.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/messagepattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/s/query/libstore_possible_cursor.a build/fedora/mongo/s/query/store_possible_cursor.o Skipping ranlib for thin archive build/fedora/mongo/s/query/libstore_possible_cursor.a g++ -o build/fedora/mongo/db/auth/authz_session_external_state_server_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_session_external_state_server_common.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_internal_expr_eq.h:31, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_internal_expr_eq.h:31, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/matcher/expression_leaf.h:31, from src/mongo/db/matcher/expression_internal_expr_eq.h:31, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_internal_expr_eq.h:31, from src/mongo/db/matcher/expression_internal_expr_eq.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_internal_expr_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalExprEqMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_internal_expr_eq.cpp:65:21: warning: redundant move in return statement [-Wredundant-move] 65 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_internal_expr_eq.cpp:65:21: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/servlkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/executor/libconnection_pool_executor.a build/fedora/mongo/executor/connection_pool.o Skipping ranlib for thin archive build/fedora/mongo/executor/libconnection_pool_executor.a g++ -o build/fedora/mongo/db/query/collation/collator_factory_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/collation/collator_factory_interface.cpp ar rcsTD build/fedora/mongo/db/auth/libauthservercommon.a build/fedora/mongo/db/auth/authz_session_external_state_server_common.o build/fedora/mongo/db/auth/sasl_commands.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthservercommon.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/punycode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/bmpset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustrenum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/uobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/zrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/repl/replication_consistency_markers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_consistency_markers.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/remtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/ucurr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/s2/util/coding/coder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/util/coding/coder.cc ar rcsTD build/fedora/third_party/s2/util/coding/libcoding.a build/fedora/third_party/s2/util/coding/coder.o build/fedora/third_party/s2/util/coding/varint.o Skipping ranlib for thin archive build/fedora/third_party/s2/util/coding/libcoding.a g++ -o build/fedora/mongo/logger/redaction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/redaction.cpp ar rcsTD build/fedora/mongo/db/repl/libreplication_process.a build/fedora/mongo/db/repl/replication_consistency_markers.o build/fedora/mongo/db/repl/replication_process.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libreplication_process.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/dangical.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/commands/cluster_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_current_op.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/rulebasedcollator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/s/commands/cluster_current_op.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/s/commands/cluster_current_op.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/s/commands/cluster_current_op.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/s/commands/cluster_current_op.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/s/commands/cluster_current_op.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/s/commands/cluster_current_op.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_data_size_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_data_size_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/s/commands/cluster_current_op.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_data_size_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_data_size_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_data_size_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_data_size_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_data_size_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_data_size_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/bson/bson_comparator_interface_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bson_comparator_interface_base.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_data_size_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/profile_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/commands/profile_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/commands/profile_gen.h:16, from build/fedora/mongo/db/commands/profile_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/commands/profile_gen.h:16, from build/fedora/mongo/db/commands/profile_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/commands/libprofile_common.a build/fedora/mongo/db/commands/profile_common.o build/fedora/mongo/db/commands/profile_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libprofile_common.a g++ -o build/fedora/mongo/db/commands/conn_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/conn_pool_stats.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/commands/conn_pool_stats.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_stats.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_stats.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/commands/conn_pool_stats.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_stats.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_stats.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/commands/conn_pool_stats.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/conn_pool_stats.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/catalog/database_holder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/database_holder.cpp g++ -o build/fedora/mongo/logger/message_log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/message_log_domain.cpp ar rcsTD build/fedora/mongo/db/catalog/libdatabase_holder.a build/fedora/mongo/db/catalog/database_holder.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libdatabase_holder.a g++ -o build/fedora/mongo/db/server_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/server_options.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/uniset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/libserver_options_core.a build/fedora/mongo/db/server_options.o Skipping ranlib for thin archive build/fedora/mongo/db/libserver_options_core.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/executor/remote_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/remote_command_request.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/regeximp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/matcher/schema/json_schema_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/json_schema_parser.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/json_schema_parser.h:31, from src/mongo/db/matcher/schema/json_schema_parser.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/json_schema_parser.h:31, from src/mongo/db/matcher/schema/json_schema_parser.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/json_schema_parser.h:31, from src/mongo/db/matcher/schema/json_schema_parser.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/json_schema_parser.h:32, from src/mongo/db/matcher/schema/json_schema_parser.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/json_schema_parser.h:31, from src/mongo/db/matcher/schema/json_schema_parser.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_type.h:31, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call g++ -o build/fedora/mongo/rpc/op_msg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/op_msg.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/json_schema_parser.h:31, from src/mongo/db/matcher/schema/json_schema_parser.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:32, from src/mongo/db/matcher/schema/json_schema_parser.cpp:42: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h: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:46: 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:49:25: warning: redundant move in return statement [-Wredundant-move] 49 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:49:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:48: src/mongo/db/matcher/schema/expression_internal_schema_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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:56: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_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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:56:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:50: src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:66:25: warning: redundant move in return statement [-Wredundant-move] 66 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:66: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_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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:56: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_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:56:25: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:56:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:53: src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:66:25: warning: redundant move in return statement [-Wredundant-move] 66 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:66:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:57: 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:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:57: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:171:21: warning: redundant move in return statement [-Wredundant-move] 171 | return std::move(orExpr); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:171:21: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/json_schema_parser.h:31, from src/mongo/db/matcher/schema/json_schema_parser.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::BSONElement, mongo::StringMapTraits>': src/mongo/db/matcher/schema/json_schema_parser.cpp:996:35: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONElement; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONElement; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONElement; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONElement; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::BSONType, mongo::StringMapTraits>': src/mongo/db/matcher/schema/json_schema_parser.cpp:1431:98: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:32, from src/mongo/db/matcher/schema/json_schema_parser.cpp:44: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:116:38: required from here src/mongo/db/matcher/expression_arity.h:131:31: warning: redundant move in return statement [-Wredundant-move] 131 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:131:31: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/rpc/message.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/message.cpp ar rcsTD build/fedora/mongo/rpc/libprotocol.a build/fedora/mongo/rpc/message.o build/fedora/mongo/rpc/op_msg.o build/fedora/mongo/rpc/protocol.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libprotocol.a g++ -o build/fedora/mongo/s/query/async_results_merger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/async_results_merger.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/async_results_merger.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/async_results_merger.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/async_results_merger.h:37, from src/mongo/s/query/async_results_merger.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/async_results_merger.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/async_results_merger.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/async_results_merger.h:37, from src/mongo/s/query/async_results_merger.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:479:21: warning: redundant move in return statement [-Wredundant-move] 479 | return std::move(cursorResponse); | ~~~~~~~~~^~~~~~~~~~~~~~~~ src/mongo/s/query/async_results_merger.cpp:479:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:40, from src/mongo/s/query/async_results_merger.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/util/net/libssl_options.a build/fedora/mongo/util/net/ssl_options.o Skipping ranlib for thin archive build/fedora/mongo/util/net/libssl_options.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/uloc_tag.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/timezone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/coleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/util/fail_point_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/fail_point_service.cpp g++ -o build/fedora/mongo/rpc/metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata.cpp g++ -o build/fedora/mongo/db/matcher/extensions_callback_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/extensions_callback_noop.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/rpc/op_msg.h:36, from src/mongo/rpc/metadata.h:34, from src/mongo/rpc/metadata.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/rpc/metadata.cpp:136:1: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/matcher/extensions_callback_noop.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/matcher/extensions_callback_noop.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/matcher/extensions_callback_noop.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/matcher/extensions_callback_noop.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call g++ -o build/fedora/mongo/base/secure_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/secure_allocator.cpp g++ -o build/fedora/mongo/rpc/command_reply.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/command_reply.cpp ar rcsTD build/fedora/mongo/base/libsecure_allocator.a build/fedora/mongo/base/secure_allocator.o Skipping ranlib for thin archive build/fedora/mongo/base/libsecure_allocator.a g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_num_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp ar rcsTD build/fedora/mongo/rpc/libcommand_reply.a build/fedora/mongo/rpc/command_reply.o build/fedora/mongo/rpc/command_reply_builder.o build/fedora/mongo/rpc/reply_builder_interface.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libcommand_reply.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucmndata.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/utrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/commands/cluster_geo_near_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_geo_near_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/repl/bson_extract_optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/bson_extract_optime.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_geo_near_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_geo_near_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/liboptime.a build/fedora/mongo/db/repl/bson_extract_optime.o build/fedora/mongo/db/repl/optime.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboptime.a g++ -o build/fedora/mongo/rpc/object_check.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/object_check.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/auth/user_document_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/user_document_parser.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/platform/atomic_word.h:31, from src/mongo/base/counter.h:33, from src/mongo/db/commands.h:35, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/auth/user_document_parser.h:32, from src/mongo/db/auth/user_document_parser.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< (mongo::StringData const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::V2UserDocumentParser::checkValidUserDocument(mongo::BSONObj const&) const' at src/mongo/db/auth/user_document_parser.cpp:147:62: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset 0 is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/auth/libuser_document_parser.a build/fedora/mongo/db/auth/user_document_parser.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libuser_document_parser.a src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ gcc -o build/fedora/third_party/icu4c-57.1/source/common/ubidi.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/ops/write_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/ops/write_ops_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/ops/write_ops_gen.h:16, from build/fedora/mongo/db/ops/write_ops_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/ops/write_ops_gen.h:16, from build/fedora/mongo/db/ops/write_ops_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/platform/atomic_word.h:31, from src/mongo/base/counter.h:33, from src/mongo/db/commands.h:35, from src/mongo/db/commands.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61, inlined from 'mongo::BSONElement::checkAndGetStringData() const' at src/mongo/bson/bsonelement.h:112:19, inlined from 'mongo::OpMsgRequest::getDatabase() const' at src/mongo/rpc/op_msg.h:139:46: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< (mongo::StringData const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::CommandRegistry::registerCommand(mongo::Command*, mongo::StringData, mongo::StringData)::{lambda()#1}::operator()() const' at src/mongo/db/commands.cpp:563:9, inlined from 'mongo::invariantWithContextAndLocation(bool const&, char const*, mongo::CommandRegistry::registerCommand(mongo::Command*, mongo::StringData, mongo::StringData)::{lambda()#1}&&, char const*, unsigned int)void' at src/mongo/util/invariant.h:94:40, inlined from 'mongo::CommandRegistry::registerCommand(mongo::Command*, mongo::StringData, mongo::StringData)' at src/mongo/db/commands.cpp:563:9: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset 0 is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/libcommands.a build/fedora/mongo/db/commands.o Skipping ranlib for thin archive build/fedora/mongo/db/libcommands.a g++ -o build/fedora/mongo/util/net/ssl_dummy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/ssl_dummy.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/msgfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/utrie2_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/auth/libauthorization_manager_global.a build/fedora/mongo/db/auth/authorization_manager_global.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthorization_manager_global.a g++ -o build/fedora/mongo/executor/thread_pool_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/thread_pool_task_executor.cpp g++ -o build/fedora/mongo/platform/stack_locator_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/stack_locator_linux.cpp g++ -o build/fedora/mongo/db/commands/kill_op_cmd_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/kill_op_cmd_base.cpp ar rcsTD build/fedora/mongo/executor/libthread_pool_task_executor.a build/fedora/mongo/executor/thread_pool_task_executor.o Skipping ranlib for thin archive build/fedora/mongo/executor/libthread_pool_task_executor.a In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op_cmd_base.h:29, from src/mongo/db/commands/kill_op_cmd_base.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op_cmd_base.h:29, from src/mongo/db/commands/kill_op_cmd_base.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/kill_op_cmd_base.h:29, from src/mongo/db/commands/kill_op_cmd_base.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/regexst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/s2/s1angle.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s1angle.cc In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op_cmd_base.h:29, from src/mongo/db/commands/kill_op_cmd_base.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op_cmd_base.h:29, from src/mongo/db/commands/kill_op_cmd_base.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/kill_op_cmd_base.h:29, from src/mongo/db/commands/kill_op_cmd_base.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/csmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/astro.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/geo/big_polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/geo/big_polygon.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op_cmd_base.h:29, from src/mongo/db/commands/kill_op_cmd_base.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/key_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/key_string.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/common/cmemory.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/platform/random.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/random.cpp g++ -o build/fedora/mongo/db/initialize_server_global_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/initialize_server_global_state.cpp ar rcsTD build/fedora/mongo/db/storage/libkey_string.a build/fedora/mongo/db/storage/key_string.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libkey_string.a gcc -o build/fedora/third_party/icu4c-57.1/source/i18n/decNumber.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C 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; /* .. */ | ~~~~~~~~~^~ In file included from src/third_party/icu4c-57.1/source/i18n/decNumber.c:182: src/third_party/icu4c-57.1/source/i18n/decNumber.h:87:19: 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; /* .. */ | ~~~~~~~~~^~ In file included from src/third_party/icu4c-57.1/source/i18n/decNumber.c:182: src/third_party/icu4c-57.1/source/i18n/decNumber.h:87:19: 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; | ~~~~~~~~~^~ In file included from src/third_party/icu4c-57.1/source/i18n/decNumber.c:182: src/third_party/icu4c-57.1/source/i18n/decNumber.h:87:19: 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; | ~~~~~~~~~^~ In file included from src/third_party/icu4c-57.1/source/i18n/decNumber.c:182: src/third_party/icu4c-57.1/source/i18n/decNumber.h:87:19: note: at offset 2 into destination object 'lsu' of size 1 87 | decNumberUnit lsu[DECNUMUNITS]; | ^~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/options_parser/constraints.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/constraints.cpp g++ -o build/fedora/mongo/db/dbmessage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/dbmessage.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/uinit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/stringtriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/util/intrusive_counter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/intrusive_counter.cpp ar rcsTD build/fedora/mongo/db/libdbmessage.a build/fedora/mongo/db/dbmessage.o Skipping ranlib for thin archive build/fedora/mongo/db/libdbmessage.a g++ -o build/fedora/mongo/db/repl/storage_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/storage_interface.cpp ar rcsTD build/fedora/mongo/util/libintrusive_counter.a build/fedora/mongo/util/intrusive_counter.o Skipping ranlib for thin archive build/fedora/mongo/util/libintrusive_counter.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/numsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/decfmtst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/catalog/uuid_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/uuid_catalog.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/repl/storage_interface.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/repl/storage_interface.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/repl/storage_interface.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/uuid_catalog.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/regexcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/chunk_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/chunk_manager.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/chunk_manager.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/chunk_manager.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/s/chunk_manager.h:37, from src/mongo/s/chunk_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/chunk_manager.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:33, from src/mongo/s/chunk_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_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/s/chunk_manager.h:37, from src/mongo/s/chunk_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/shard_key_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/shard_key_pattern.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/s/chunk_manager.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/shard_key_pattern.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/shard_key_pattern.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/s/shard_key_pattern.h:36, from src/mongo/s/shard_key_pattern.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/s/shard_key_pattern.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/shard_key_pattern.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/s/shard_key_pattern.h:36, from src/mongo/s/shard_key_pattern.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/s/shard_key_pattern.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/platform/shared_library_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/shared_library_posix.cpp ar rcsTD build/fedora/mongo/s/libsharding_routing_table.a build/fedora/mongo/s/chunk.o build/fedora/mongo/s/chunk_manager.o build/fedora/mongo/s/shard_key_pattern.o Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_routing_table.a g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/field_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/field_parser.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/net/socket_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/socket_exception.cpp g++ -o build/fedora/mongo/bson/mutable/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/mutable/document.cpp g++ -o build/fedora/mongo/db/commands/reap_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/reap_logical_session_cache_now.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/client/connection_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/connection_string.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/digitlst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/update/modifier_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/modifier_node.cpp ar rcsTD build/fedora/mongo/client/libconnection_string.a build/fedora/mongo/client/connection_string.o build/fedora/mongo/client/mongo_uri.o Skipping ranlib for thin archive build/fedora/mongo/client/libconnection_string.a ar rcsTD build/fedora/mongo/s/commands/libshared_cluster_commands.a build/fedora/mongo/s/commands/cluster_get_shard_map_cmd.o Skipping ranlib for thin archive build/fedora/mongo/s/commands/libshared_cluster_commands.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/modifier_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/modifier_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ gcc -o build/fedora/third_party/icu4c-57.1/source/common/uarrsort.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/modifier_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/interval.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/update/path_support.h:39, from src/mongo/db/update/modifier_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/parsed_exclusion_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/parsed_exclusion_projection.cpp g++ -o build/fedora/mongo/util/periodic_runner_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/periodic_runner_factory.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/parsed_aggregation_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/parsed_aggregation_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/pipeline/parsed_aggregation_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/util/libperiodic_runner_factory.a build/fedora/mongo/util/periodic_runner_factory.o Skipping ranlib for thin archive build/fedora/mongo/util/libperiodic_runner_factory.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u8.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/query/establish_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/establish_cursors.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_exclusion_projection.h:34, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:39, from src/mongo/s/query/establish_cursors.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:39, from src/mongo/s/query/establish_cursors.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/establish_cursors.h:36, from src/mongo/s/query/establish_cursors.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:39, from src/mongo/s/query/establish_cursors.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:39, from src/mongo/s/query/establish_cursors.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/s/query/establish_cursors.h:36, from src/mongo/s/query/establish_cursors.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/platform/decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/decimal128.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from build/fedora/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:39, from src/mongo/s/query/establish_cursors.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/nfrs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/transport/libtransport_layer.a build/fedora/mongo/transport/transport_layer_asio.o Skipping ranlib for thin archive build/fedora/mongo/transport/libtransport_layer.a /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/util/net/hostandport_gen.h --output build/fedora/mongo/util/net/hostandport_gen.cpp src/mongo/util/net/hostandport.idl g++ -o build/fedora/mongo/util/net/hostandport_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc build/fedora/mongo/util/net/hostandport_gen.cpp ar rcsTD build/fedora/mongo/s/query/libasync_results_merger.a build/fedora/mongo/s/query/async_results_merger.o build/fedora/mongo/s/query/establish_cursors.o build/fedora/mongo/s/query/async_results_merger_params_gen.o Skipping ranlib for thin archive build/fedora/mongo/s/query/libasync_results_merger.a g++ -o build/fedora/mongo/util/net/hostname_canonicalization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/hostname_canonicalization.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/util/net/hostandport_gen.h:16, from build/fedora/mongo/util/net/hostandport_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/util/net/hostandport_gen.h:16, from build/fedora/mongo/util/net/hostandport_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/net/sockaddr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/sockaddr.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/util/net/socket_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/socket_utils.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/usetiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/s/query/cluster_client_cursor_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/cluster_client_cursor_impl.cpp ar rcsTD build/fedora/mongo/util/net/libnetwork.a build/fedora/mongo/util/net/cidr.o build/fedora/mongo/util/net/hostandport.o build/fedora/mongo/util/net/hostname_canonicalization.o build/fedora/mongo/util/net/sockaddr.o build/fedora/mongo/util/net/socket_exception.o build/fedora/mongo/util/net/socket_utils.o build/fedora/mongo/util/net/hostandport_gen.o Skipping ranlib for thin archive build/fedora/mongo/util/net/libnetwork.a g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_cond.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/executor/task_executor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:34, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/executor/task_executor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:34, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_arity.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_arity.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_arity.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:31: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:116:38: required from here src/mongo/db/matcher/expression_arity.h:131:31: warning: redundant move in return statement [-Wredundant-move] 131 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:131:31: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/servrbf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/operation_time_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/operation_time_tracker.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_client_cursor_impl.h:35, from src/mongo/s/query/cluster_client_cursor_impl.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/server_status_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/server_status_servers.cpp g++ -o build/fedora/mongo/s/commands/cluster_restart_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_restart_catalog_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/commands/server_status_servers.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/commands/server_status_servers.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/commands/server_status_servers.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/commands/server_status_servers.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_restart_catalog_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/commands/server_status_servers.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:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_restart_catalog_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::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/commands/server_status_servers.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/commands/server_status_servers.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/db/commands/libserver_status_servers.a build/fedora/mongo/db/commands/server_status_servers.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libserver_status_servers.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/tzgnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/regextxt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/unistr_case_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/propsvec.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/commands/cluster_reindex_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_reindex_cmd.cpp g++ -o build/fedora/mongo/db/logical_time_validator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_time_validator.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reindex_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reindex_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_reindex_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reindex_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reindex_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_reindex_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libwire_version.a build/fedora/mongo/db/wire_version.o Skipping ranlib for thin archive build/fedora/mongo/db/libwire_version.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/commands/cluster_kill_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_kill_op.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reindex_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libsessions_collection_sharded.a build/fedora/mongo/db/sessions_collection_sharded.o Skipping ranlib for thin archive build/fedora/mongo/db/libsessions_collection_sharded.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/locavailable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_kill_op.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_kill_op.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/s/commands/cluster_kill_op.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/casetrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/update/field_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/field_checker.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/s/commands/cluster_kill_op.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/update/storage_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/storage_validation.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_kill_op.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/update/log_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/log_builder.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/i18n/utmscale.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/shim_stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_stemmer.cpp g++ -o build/fedora/mongo/db/index/expression_keys_private.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/expression_keys_private.cpp ar rcsTD build/fedora/mongo/db/update/libupdate_common.a build/fedora/mongo/db/update/field_checker.o build/fedora/mongo/db/update/log_builder.o build/fedora/mongo/db/update/path_support.o build/fedora/mongo/db/update/storage_validation.o Skipping ranlib for thin archive build/fedora/mongo/db/update/libupdate_common.a g++ -o build/fedora/third_party/shim_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -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/fedora/third_party/libshim_icu.a build/fedora/third_party/shim_icu.o Skipping ranlib for thin archive build/fedora/third_party/libshim_icu.a g++ -o build/fedora/mongo/util/system_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/system_clock_source.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_ct.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/ufieldpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/islamcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/strrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/catalog/index_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_catalog.cpp ar rcsTD build/fedora/mongo/db/catalog/libindex_catalog.a build/fedora/mongo/db/catalog/index_catalog.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libindex_catalog.a g++ -o build/fedora/mongo/util/periodic_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/periodic_runner.cpp g++ -o build/fedora/mongo/db/matcher/expression_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_expr.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/unifiedcache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/s2/s2latlngrect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2latlngrect.cc In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_expr.h:33, from src/mongo/db/matcher/expression_expr.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_expr.h:33, from src/mongo/db/matcher/expression_expr.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_expr.h:33, from src/mongo/db/matcher/expression_expr.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_expr.h:34, from src/mongo/db/matcher/expression_expr.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_expr.h:33, from src/mongo/db/matcher/expression_expr.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/rewrite_expr.h:35, from src/mongo/db/matcher/expression_expr.h:35, from src/mongo/db/matcher/expression_expr.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_expr.h:33, from src/mongo/db/matcher/expression_expr.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:95:21: warning: redundant move in return statement [-Wredundant-move] 95 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_expr.cpp:95:21: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/util/libsafe_num.a build/fedora/mongo/util/safe_num.o Skipping ranlib for thin archive build/fedora/mongo/util/libsafe_num.a g++ -o build/fedora/mongo/db/matcher/matcher_type_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/matcher_type_set.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/digitaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/client/query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/query.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/matcher_type_set.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/matcher_type_set.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/matcher/matcher_type_set.h:34, from src/mongo/db/matcher/matcher_type_set.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/matcher_type_set.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher_type_set.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/matcher/matcher_type_set.h:34, from src/mongo/db/matcher/matcher_type_set.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::BSONType, mongo::StringMapTraits>': src/mongo/db/matcher/matcher_type_set.cpp:55:23: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BSONType; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/json.h:33, from src/mongo/client/query.h:31, from src/mongo/client/query.cpp:30: In function 'memcpy', inlined from 'mongo::Message::setData(int, char const*, unsigned int)' at src/mongo/rpc/message.h:448:19, inlined from 'mongo::assembleQueryRequest(std::__cxx11::basic_string, std::allocator > const&, mongo::BSONObj, int, int, mongo::BSONObj const*, int, mongo::Message&)' at src/mongo/client/query.cpp:181:19: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset 0 is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/logger/logstream_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/logstream_builder.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher_type_set.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/olsontz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/repl/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/isself.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/bytestream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/query/expression_index_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/expression_index_knobs.cpp g++ -o build/fedora/mongo/db/commands/refresh_sessions_command_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/refresh_sessions_command_internal.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/isself.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/isself.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/repl/isself.h:34, from src/mongo/db/repl/isself.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/isself.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/isself.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/repl/isself.h:34, from src/mongo/db/repl/isself.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command_internal.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command_internal.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/isself.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/platform/strnlen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/strnlen.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/rbt_rule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/geo/shapes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/geo/shapes.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationsets.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/util/concurrency/libticketholder.a build/fedora/mongo/util/concurrency/ticketholder.o Skipping ranlib for thin archive build/fedora/mongo/util/concurrency/libticketholder.a g++ -o build/fedora/mongo/s/commands/cluster_is_master_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_is_master_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/s/commands/cluster_is_master_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/s/commands/cluster_is_master_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/sasl_mechanism_registry.h:36, from src/mongo/s/commands/cluster_is_master_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/s/commands/cluster_is_master_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/s/commands/cluster_is_master_cmd.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 g++ -o build/fedora/third_party/s2/s2polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2polygon.cc In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/sasl_mechanism_registry.h:36, from src/mongo/s/commands/cluster_is_master_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/s/commands/cluster_is_master_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/util/concurrency/thread_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/concurrency/thread_name.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/update/pullall_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/pullall_node.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/s2/s2cap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2cap.cc In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/pullall_node.h:31, from src/mongo/db/update/pullall_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/pullall_node.h:31, from src/mongo/db/update/pullall_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/pullall_node.h:31, from src/mongo/db/update/pullall_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/tolowtrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/catalog_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog_cache.cpp g++ -o build/fedora/mongo/s/client/shard_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/shard_factory.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/s/catalog/type_database.h:34, from src/mongo/s/catalog_cache.h:34, from src/mongo/s/catalog_cache.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/write_concern_options.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/commands/cluster_enable_sharding_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_enable_sharding_cmd.cpp ar rcsTD build/fedora/mongo/s/libgrid.a build/fedora/mongo/s/balancer_configuration.o build/fedora/mongo/s/catalog_cache.o build/fedora/mongo/s/client/shard_factory.o build/fedora/mongo/s/client/shard_registry.o build/fedora/mongo/s/grid.o Skipping ranlib for thin archive build/fedora/mongo/s/libgrid.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/commands/cluster_ftdc_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_ftdc_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_ftdc_commands.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_ftdc_commands.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_ftdc_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_ftdc_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_ftdc_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_ftdc_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_ftdc_commands.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/pipeline/resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/resume_token.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/resume_token.h:36, from src/mongo/db/pipeline/resume_token.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/resume_token.h:36, from src/mongo/db/pipeline/resume_token.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/db/pipeline/document_sources_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/pipeline/document_sources_gen.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/resume_token.h:36, from build/fedora/mongo/db/pipeline/document_sources_gen.h:21, from build/fedora/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/resume_token.h:36, from build/fedora/mongo/db/pipeline/document_sources_gen.h:21, from build/fedora/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/db/commands/server_status_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/server_status_internal.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/pipeline/document_sources_gen.h:16, from build/fedora/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/pipeline/document_sources_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/pipeline/document_sources_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/pipeline/document_sources_gen.h:16, from build/fedora/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/db/commands/server_status_internal.h:36, from src/mongo/db/commands/server_status_internal.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< , std::allocator > >(std::__cxx11::basic_string, std::allocator > const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::MetricTree::add(mongo::ServerStatusMetric*)' at src/mongo/db/commands/server_status_internal.cpp:54:45: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 504] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/server_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/server_recovery.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/pipeline/document_sources_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnvisci.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/fts/unicode/string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/unicode/string.cpp ar rcsTD build/fedora/mongo/db/pipeline/libdocument_sources_idl.a build/fedora/mongo/db/pipeline/document_sources_gen.o build/fedora/mongo/db/pipeline/resume_token.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libdocument_sources_idl.a /usr/bin/python3 src/mongo/db/fts/unicode/gen_casefold_map.py src/third_party/unicode-8.0.0/CaseFolding.txt build/fedora/mongo/db/fts/unicode/codepoints_casefold.cpp /builddir/build/BUILD/mongo-r4.0.3/src/mongo/db/fts/unicode/gen_casefold_map.py:25: DeprecationWarning: 'U' mode is deprecated cf_file = open(unicode_casefold_file, 'rU') g++ -o build/fedora/mongo/db/fts/unicode/codepoints_casefold.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/fts/unicode/codepoints_casefold.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnvdisp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/liblog_process_details.a build/fedora/mongo/db/log_process_details.o Skipping ranlib for thin archive build/fedora/mongo/db/liblog_process_details.a g++ -o build/fedora/mongo/db/audit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/audit.cpp ar rcsTD build/fedora/mongo/db/fts/unicode/libunicode.a build/fedora/mongo/db/fts/unicode/codepoints_casefold.o build/fedora/mongo/db/fts/unicode/codepoints_delimiter_list.o build/fedora/mongo/db/fts/unicode/codepoints_diacritic_list.o build/fedora/mongo/db/fts/unicode/codepoints_diacritic_map.o build/fedora/mongo/db/fts/unicode/string.o Skipping ranlib for thin archive build/fedora/mongo/db/fts/unicode/libunicode.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/query/index_bounds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/index_bounds.cpp ar rcsTD build/fedora/mongo/db/auth/librole_graph_update.a build/fedora/mongo/db/auth/role_graph_update.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/librole_graph_update.a g++ -o build/fedora/mongo/rpc/metadata/logical_time_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/logical_time_metadata.cpp g++ -o build/fedora/mongo/db/cursor_server_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/cursor_server_params.cpp g++ -o build/fedora/mongo/s/sharding_uptime_reporter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/sharding_uptime_reporter.cpp ar rcsTD build/fedora/mongo/db/libcursor_server_params.a build/fedora/mongo/db/cursor_server_params.o Skipping ranlib for thin archive build/fedora/mongo/db/libcursor_server_params.a ar rcsTD build/fedora/mongo/db/pipeline/libaggregation_request.a build/fedora/mongo/db/pipeline/aggregation_request.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libaggregation_request.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/indiancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/service_entry_point_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/service_entry_point_mongos.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/service_entry_point_mongos.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/service_entry_point_mongos.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/transport/service_entry_point.h:32, from src/mongo/transport/service_entry_point_impl.h:37, from src/mongo/s/service_entry_point_mongos.h:34, from src/mongo/s/service_entry_point_mongos.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/service_entry_point_mongos.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/upluralrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call g++ -o build/fedora/mongo/s/write_ops/batch_write_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/batch_write_exec.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/service_entry_point_mongos.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/transport/service_entry_point.h:32, from src/mongo/transport/service_entry_point_impl.h:37, from src/mongo/s/service_entry_point_mongos.h:34, from src/mongo/s/service_entry_point_mongos.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/service_entry_point_mongos.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/ucal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustrcase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/index/index_descriptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/index_descriptor.cpp g++ -o build/fedora/mongo/db/query/query_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/query_request.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/index/index_descriptor.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/index_descriptor.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/index_descriptor.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/index/index_descriptor.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/index_descriptor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/query/query_request.h:34, from src/mongo/db/query/query_request.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/index_descriptor.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/query/query_request.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/query/query_request.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/query/query_request.h:34, from src/mongo/db/query/query_request.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/query/query_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/query/query_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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/query/query_request.h:34, from src/mongo/db/query/query_request.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/index/index_descriptor.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:399:21: warning: redundant move in return statement [-Wredundant-move] 399 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:399: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:731:21: warning: redundant move in return statement [-Wredundant-move] 731 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:731:21: note: remove 'std::move' call src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::fromLegacyQuery(mongo::NamespaceString, const mongo::BSONObj&, const mongo::BSONObj&, int, int, int)': src/mongo/db/query/query_request.cpp:747:21: warning: redundant move in return statement [-Wredundant-move] 747 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:747:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/index_descriptor.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/query/query_request.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/japancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/matcher/expression_where_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_where_base.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where_base.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where_base.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where_base.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_reset_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_reset_error_cmd.cpp g++ -o build/fedora/mongo/db/pipeline/lite_parsed_document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/lite_parsed_document_source.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/pipeline/lite_parsed_document_source.h:35, from src/mongo/db/pipeline/lite_parsed_document_source.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::function(const mongo::AggregationRequest&, const mongo::BSONElement&)>, mongo::StringMapTraits>': src/mongo/db/pipeline/lite_parsed_document_source.cpp:40:19: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const mongo::AggregationRequest&, const mongo::BSONElement&)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const mongo::AggregationRequest&, const mongo::BSONElement&)>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const mongo::AggregationRequest&, const mongo::BSONElement&)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::function(const mongo::AggregationRequest&, const mongo::BSONElement&)>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reset_error_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reset_error_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/pipeline/liblite_parsed_document_source.a build/fedora/mongo/db/pipeline/lite_parsed_document_source.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/liblite_parsed_document_source.a g++ -o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a build/fedora/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.o build/fedora/mongo/db/storage/wiredtiger/wiredtiger_extensions.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/utf16collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/db/update/update_object_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/update_object_node.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/basictz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/unifilt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/matcher/expression_text_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_text_noop.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/update/update_object_node.h:36, from src/mongo/db/update/update_object_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/update/update_object_node.h:36, from src/mongo/db/update/update_object_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text_noop.h:32, from src/mongo/db/matcher/expression_text_noop.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text_noop.h:32, from src/mongo/db/matcher/expression_text_noop.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/update/update_object_node.h:35, from src/mongo/db/update/update_object_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_query.h:33, from src/mongo/db/fts/fts_query_noop.h:31, from src/mongo/db/matcher/expression_text_noop.h:31, from src/mongo/db/matcher/expression_text_noop.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text_noop.h:32, from src/mongo/db/matcher/expression_text_noop.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_text_noop.cpp: In member function 'virtual std::unique_ptr mongo::TextNoOpMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_text_noop.cpp:57:21: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text_noop.cpp:57:21: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:347:21: warning: redundant move in return statement [-Wredundant-move] 347 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_object_node.cpp:347:21: note: remove 'std::move' call ar rcsTD build/fedora/mongo/logger/libparse_log_component_settings.a build/fedora/mongo/logger/parse_log_component_settings.o Skipping ranlib for thin archive build/fedora/mongo/logger/libparse_log_component_settings.a ar rcsTD build/fedora/mongo/util/libdebugger.a build/fedora/mongo/util/debugger.o Skipping ranlib for thin archive build/fedora/mongo/util/libdebugger.a g++ -o build/fedora/mongo/client/remote_command_retry_scheduler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/remote_command_retry_scheduler.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/common/ulist.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/csrecog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/mongo/s/catalog/replset_dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/replset_dist_lock_manager.cpp ar rcsTD build/fedora/mongo/client/libremote_command_retry_scheduler.a build/fedora/mongo/client/remote_command_retry_scheduler.o Skipping ranlib for thin archive build/fedora/mongo/client/libremote_command_retry_scheduler.a g++ -o build/fedora/mongo/s/commands/cluster_getmore_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_getmore_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_getmore_cmd.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_getmore_cmd.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_getmore_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_getmore_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_getmore_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_getmore_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_getmore_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/bson/bsonobj.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bsonobj.cpp g++ -o build/fedora/mongo/util/net/private/ssl_expiration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/private/ssl_expiration.cpp g++ -o build/fedora/mongo/s/commands/cluster_find_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_find_cmd.cpp In file included from src/mongo/db/jsobj.h:46, from src/mongo/bson/bsonobj.cpp:32: src/mongo/bson/bsonobj.cpp: In member function 'mongo::BSONObj::replaceFieldNames(mongo::BSONObj const&) const': src/mongo/bson/bsonelement.h:660:36: warning: offset '5' outside bounds of constant string [-Warray-bounds] 660 | fieldNameSize_ = strlen(d + 1 /*skip type*/) + 1 /*include NUL byte*/; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/bson/bsonmisc.h:33, from src/mongo/db/jsobj.h:47, from src/mongo/bson/bsonobj.cpp:32: src/mongo/bson/bsonobj.h:120:27: note: 'mongo::BSONObj::BSONObj()::kEmptyObjectPrototype' declared here 120 | static const char kEmptyObjectPrototype[] = {/*size*/ kMinBSONLength, 0, 0, 0, /*eoo*/ 0}; | ^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/client/read_preference.h:31, from src/mongo/s/commands/cluster_find_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/bson/mutable/libmutable_bson.a build/fedora/mongo/bson/mutable/document.o build/fedora/mongo/bson/mutable/element.o Skipping ranlib for thin archive build/fedora/mongo/bson/mutable/libmutable_bson.a g++ -o build/fedora/mongo/s/commands/cluster_drop_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_drop_cmd.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/client/read_preference.h:31, from src/mongo/s/commands/cluster_find_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_drop_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_drop_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_find_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/is_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/is_mongos.cpp ar rcsTD build/fedora/mongo/s/libis_mongos.a build/fedora/mongo/s/is_mongos.o Skipping ranlib for thin archive build/fedora/mongo/s/libis_mongos.a g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/rbt_pars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/buddhcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/nfsubs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationroot.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/stsearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/bocsu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/winnmfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/rematch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/ethpccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/zonemeta.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/simpletz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/rbt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/search.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/tznames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/standardplural.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/cpdtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/dtitvfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/coptccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/digitgrouping.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/coll.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/nfrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/compactdecimalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/dtfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/selfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/unumsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/ztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/uregexc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/numfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/reldatefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/quantityformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/esctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/fmtable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/windtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/toupptrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/umsg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/utf8collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/gregoimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/digitinterval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/nortrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/tzfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/rbtz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/funcrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/measure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/dtptngen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/smpdtfst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/csrucode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/udatpg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/uspoof_conf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/gregocal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/measfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/uspoof_build.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/csrmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/ucol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/i18n/fphdlimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/hebrwcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/titletrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/repattrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/chnsecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/tmutamt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/alphaindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/tztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationdatareader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationfastlatin.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/csrsbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/digitformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationdatawriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/decimfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collationruleparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/fmtable_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/plurfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/fpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/i18n/decContext.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/vzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/uspoof_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/strmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/usearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/collation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/affixpatternparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/datefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/transreg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/unesctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/udat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/gender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/ucln_in.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/rbt_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/quant.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/uni2name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/udateintervalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/dtrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/i18n/dtitvinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/patternprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 Using tempfile /tmp/tmpl0nddkr9.lnk for command line: ar rcsTD build/fedora/third_party/icu4c-57.1/source/libicu_i18n.a build/fedora/third_party/icu4c-57.1/source/i18n/affixpatternparser.o build/fedora/third_party/icu4c-57.1/source/i18n/alphaindex.o build/fedora/third_party/icu4c-57.1/source/i18n/anytrans.o build/fedora/third_party/icu4c-57.1/source/i18n/astro.o build/fedora/third_party/icu4c-57.1/source/i18n/basictz.o build/fedora/third_party/icu4c-57.1/source/i18n/bocsu.o build/fedora/third_party/icu4c-57.1/source/i18n/brktrans.o build/fedora/third_party/icu4c-57.1/source/i18n/buddhcal.o build/fedora/third_party/icu4c-57.1/source/i18n/calendar.o build/fedora/third_party/icu4c-57.1/source/i18n/casetrn.o build/fedora/third_party/icu4c-57.1/source/i18n/cecal.o build/fedora/third_party/icu4c-57.1/source/i18n/chnsecal.o build/fedora/third_party/icu4c-57.1/source/i18n/choicfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/coleitr.o build/fedora/third_party/icu4c-57.1/source/i18n/coll.o build/fedora/third_party/icu4c-57.1/source/i18n/collation.o build/fedora/third_party/icu4c-57.1/source/i18n/collationbuilder.o build/fedora/third_party/icu4c-57.1/source/i18n/collationcompare.o build/fedora/third_party/icu4c-57.1/source/i18n/collationdata.o build/fedora/third_party/icu4c-57.1/source/i18n/collationdatabuilder.o build/fedora/third_party/icu4c-57.1/source/i18n/collationdatareader.o build/fedora/third_party/icu4c-57.1/source/i18n/collationdatawriter.o build/fedora/third_party/icu4c-57.1/source/i18n/collationfastlatin.o build/fedora/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.o build/fedora/third_party/icu4c-57.1/source/i18n/collationfcd.o build/fedora/third_party/icu4c-57.1/source/i18n/collationiterator.o build/fedora/third_party/icu4c-57.1/source/i18n/collationkeys.o build/fedora/third_party/icu4c-57.1/source/i18n/collationroot.o build/fedora/third_party/icu4c-57.1/source/i18n/collationrootelements.o build/fedora/third_party/icu4c-57.1/source/i18n/collationruleparser.o build/fedora/third_party/icu4c-57.1/source/i18n/collationsets.o build/fedora/third_party/icu4c-57.1/source/i18n/collationsettings.o build/fedora/third_party/icu4c-57.1/source/i18n/collationtailoring.o build/fedora/third_party/icu4c-57.1/source/i18n/collationweights.o build/fedora/third_party/icu4c-57.1/source/i18n/compactdecimalformat.o build/fedora/third_party/icu4c-57.1/source/i18n/coptccal.o build/fedora/third_party/icu4c-57.1/source/i18n/cpdtrans.o build/fedora/third_party/icu4c-57.1/source/i18n/csdetect.o build/fedora/third_party/icu4c-57.1/source/i18n/csmatch.o build/fedora/third_party/icu4c-57.1/source/i18n/csr2022.o build/fedora/third_party/icu4c-57.1/source/i18n/csrecog.o build/fedora/third_party/icu4c-57.1/source/i18n/csrmbcs.o build/fedora/third_party/icu4c-57.1/source/i18n/csrsbcs.o build/fedora/third_party/icu4c-57.1/source/i18n/csrucode.o build/fedora/third_party/icu4c-57.1/source/i18n/csrutf8.o build/fedora/third_party/icu4c-57.1/source/i18n/curramt.o build/fedora/third_party/icu4c-57.1/source/i18n/currfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/currpinf.o build/fedora/third_party/icu4c-57.1/source/i18n/currunit.o build/fedora/third_party/icu4c-57.1/source/i18n/dangical.o build/fedora/third_party/icu4c-57.1/source/i18n/datefmt.o build/fedora/third_party/icu4c-57.1/source/i18n/dayperiodrules.o build/fedora/third_party/icu4c-57.1/source/i18n/dcfmtsym.o build/fedora/third_party/icu4c-57.1/source/i18n/decContext.o build/fedora/third_party/icu4c-57.1/source/i18n/decNumber.o build/fedora/third_party/icu4c-57.1/source/i18n/decfmtst.o build/fedora/third_party/icu4c-57.1/source/i18n/decimalformatpattern.o build/fedora/third_party/icu4c-57.1/source/i18n/decimfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/decimfmtimpl.o build/fedora/third_party/icu4c-57.1/source/i18n/digitaffix.o build/fedora/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.o build/fedora/third_party/icu4c-57.1/source/i18n/digitformatter.o build/fedora/third_party/icu4c-57.1/source/i18n/digitgrouping.o build/fedora/third_party/icu4c-57.1/source/i18n/digitinterval.o build/fedora/third_party/icu4c-57.1/source/i18n/digitlst.o build/fedora/third_party/icu4c-57.1/source/i18n/dtfmtsym.o build/fedora/third_party/icu4c-57.1/source/i18n/dtitvfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/dtitvinf.o build/fedora/third_party/icu4c-57.1/source/i18n/dtptngen.o build/fedora/third_party/icu4c-57.1/source/i18n/dtrule.o build/fedora/third_party/icu4c-57.1/source/i18n/esctrn.o build/fedora/third_party/icu4c-57.1/source/i18n/ethpccal.o build/fedora/third_party/icu4c-57.1/source/i18n/fmtable.o build/fedora/third_party/icu4c-57.1/source/i18n/fmtable_cnv.o build/fedora/third_party/icu4c-57.1/source/i18n/format.o build/fedora/third_party/icu4c-57.1/source/i18n/fphdlimp.o build/fedora/third_party/icu4c-57.1/source/i18n/fpositer.o build/fedora/third_party/icu4c-57.1/source/i18n/funcrepl.o build/fedora/third_party/icu4c-57.1/source/i18n/gender.o build/fedora/third_party/icu4c-57.1/source/i18n/gregocal.o build/fedora/third_party/icu4c-57.1/source/i18n/gregoimp.o build/fedora/third_party/icu4c-57.1/source/i18n/hebrwcal.o build/fedora/third_party/icu4c-57.1/source/i18n/identifier_info.o build/fedora/third_party/icu4c-57.1/source/i18n/indiancal.o build/fedora/third_party/icu4c-57.1/source/i18n/inputext.o build/fedora/third_party/icu4c-57.1/source/i18n/islamcal.o build/fedora/third_party/icu4c-57.1/source/i18n/japancal.o build/fedora/third_party/icu4c-57.1/source/i18n/measfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/measunit.o build/fedora/third_party/icu4c-57.1/source/i18n/measure.o build/fedora/third_party/icu4c-57.1/source/i18n/msgfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/name2uni.o build/fedora/third_party/icu4c-57.1/source/i18n/nfrs.o build/fedora/third_party/icu4c-57.1/source/i18n/nfrule.o build/fedora/third_party/icu4c-57.1/source/i18n/nfsubs.o build/fedora/third_party/icu4c-57.1/source/i18n/nortrans.o build/fedora/third_party/icu4c-57.1/source/i18n/nultrans.o build/fedora/third_party/icu4c-57.1/source/i18n/numfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/numsys.o build/fedora/third_party/icu4c-57.1/source/i18n/olsontz.o build/fedora/third_party/icu4c-57.1/source/i18n/persncal.o build/fedora/third_party/icu4c-57.1/source/i18n/pluralaffix.o build/fedora/third_party/icu4c-57.1/source/i18n/plurfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/plurrule.o build/fedora/third_party/icu4c-57.1/source/i18n/precision.o build/fedora/third_party/icu4c-57.1/source/i18n/quant.o build/fedora/third_party/icu4c-57.1/source/i18n/quantityformatter.o build/fedora/third_party/icu4c-57.1/source/i18n/rbnf.o build/fedora/third_party/icu4c-57.1/source/i18n/rbt.o build/fedora/third_party/icu4c-57.1/source/i18n/rbt_data.o build/fedora/third_party/icu4c-57.1/source/i18n/rbt_pars.o build/fedora/third_party/icu4c-57.1/source/i18n/rbt_rule.o build/fedora/third_party/icu4c-57.1/source/i18n/rbt_set.o build/fedora/third_party/icu4c-57.1/source/i18n/rbtz.o build/fedora/third_party/icu4c-57.1/source/i18n/regexcmp.o build/fedora/third_party/icu4c-57.1/source/i18n/regeximp.o build/fedora/third_party/icu4c-57.1/source/i18n/regexst.o build/fedora/third_party/icu4c-57.1/source/i18n/regextxt.o build/fedora/third_party/icu4c-57.1/source/i18n/region.o build/fedora/third_party/icu4c-57.1/source/i18n/reldatefmt.o build/fedora/third_party/icu4c-57.1/source/i18n/reldtfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/rematch.o build/fedora/third_party/icu4c-57.1/source/i18n/remtrans.o build/fedora/third_party/icu4c-57.1/source/i18n/repattrn.o build/fedora/third_party/icu4c-57.1/source/i18n/rulebasedcollator.o build/fedora/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.o build/fedora/third_party/icu4c-57.1/source/i18n/scriptset.o build/fedora/third_party/icu4c-57.1/source/i18n/search.o build/fedora/third_party/icu4c-57.1/source/i18n/selfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.o build/fedora/third_party/icu4c-57.1/source/i18n/simpletz.o build/fedora/third_party/icu4c-57.1/source/i18n/smallintformatter.o build/fedora/third_party/icu4c-57.1/source/i18n/smpdtfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/smpdtfst.o build/fedora/third_party/icu4c-57.1/source/i18n/sortkey.o build/fedora/third_party/icu4c-57.1/source/i18n/standardplural.o build/fedora/third_party/icu4c-57.1/source/i18n/strmatch.o build/fedora/third_party/icu4c-57.1/source/i18n/strrepl.o build/fedora/third_party/icu4c-57.1/source/i18n/stsearch.o build/fedora/third_party/icu4c-57.1/source/i18n/taiwncal.o build/fedora/third_party/icu4c-57.1/source/i18n/timezone.o build/fedora/third_party/icu4c-57.1/source/i18n/titletrn.o build/fedora/third_party/icu4c-57.1/source/i18n/tmunit.o build/fedora/third_party/icu4c-57.1/source/i18n/tmutamt.o build/fedora/third_party/icu4c-57.1/source/i18n/tmutfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/tolowtrn.o build/fedora/third_party/icu4c-57.1/source/i18n/toupptrn.o build/fedora/third_party/icu4c-57.1/source/i18n/translit.o build/fedora/third_party/icu4c-57.1/source/i18n/transreg.o build/fedora/third_party/icu4c-57.1/source/i18n/tridpars.o build/fedora/third_party/icu4c-57.1/source/i18n/tzfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/tzgnames.o build/fedora/third_party/icu4c-57.1/source/i18n/tznames.o build/fedora/third_party/icu4c-57.1/source/i18n/tznames_impl.o build/fedora/third_party/icu4c-57.1/source/i18n/tzrule.o build/fedora/third_party/icu4c-57.1/source/i18n/tztrans.o build/fedora/third_party/icu4c-57.1/source/i18n/ucal.o build/fedora/third_party/icu4c-57.1/source/i18n/ucln_in.o build/fedora/third_party/icu4c-57.1/source/i18n/ucol.o build/fedora/third_party/icu4c-57.1/source/i18n/ucol_res.o build/fedora/third_party/icu4c-57.1/source/i18n/ucol_sit.o build/fedora/third_party/icu4c-57.1/source/i18n/ucoleitr.o build/fedora/third_party/icu4c-57.1/source/i18n/ucsdet.o build/fedora/third_party/icu4c-57.1/source/i18n/udat.o build/fedora/third_party/icu4c-57.1/source/i18n/udateintervalformat.o build/fedora/third_party/icu4c-57.1/source/i18n/udatpg.o build/fedora/third_party/icu4c-57.1/source/i18n/ufieldpositer.o build/fedora/third_party/icu4c-57.1/source/i18n/uitercollationiterator.o build/fedora/third_party/icu4c-57.1/source/i18n/ulocdata.o build/fedora/third_party/icu4c-57.1/source/i18n/umsg.o build/fedora/third_party/icu4c-57.1/source/i18n/unesctrn.o build/fedora/third_party/icu4c-57.1/source/i18n/uni2name.o build/fedora/third_party/icu4c-57.1/source/i18n/unum.o build/fedora/third_party/icu4c-57.1/source/i18n/unumsys.o build/fedora/third_party/icu4c-57.1/source/i18n/upluralrules.o build/fedora/third_party/icu4c-57.1/source/i18n/uregex.o build/fedora/third_party/icu4c-57.1/source/i18n/uregexc.o build/fedora/third_party/icu4c-57.1/source/i18n/uregion.o build/fedora/third_party/icu4c-57.1/source/i18n/usearch.o build/fedora/third_party/icu4c-57.1/source/i18n/uspoof.o build/fedora/third_party/icu4c-57.1/source/i18n/uspoof_build.o build/fedora/third_party/icu4c-57.1/source/i18n/uspoof_conf.o build/fedora/third_party/icu4c-57.1/source/i18n/uspoof_impl.o build/fedora/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.o build/fedora/third_party/icu4c-57.1/source/i18n/utf16collationiterator.o build/fedora/third_party/icu4c-57.1/source/i18n/utf8collationiterator.o build/fedora/third_party/icu4c-57.1/source/i18n/utmscale.o build/fedora/third_party/icu4c-57.1/source/i18n/utrans.o build/fedora/third_party/icu4c-57.1/source/i18n/valueformatter.o build/fedora/third_party/icu4c-57.1/source/i18n/visibledigits.o build/fedora/third_party/icu4c-57.1/source/i18n/vtzone.o build/fedora/third_party/icu4c-57.1/source/i18n/vzone.o build/fedora/third_party/icu4c-57.1/source/i18n/windtfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/winnmfmt.o build/fedora/third_party/icu4c-57.1/source/i18n/wintzimpl.o build/fedora/third_party/icu4c-57.1/source/i18n/zonemeta.o build/fedora/third_party/icu4c-57.1/source/i18n/zrule.o build/fedora/third_party/icu4c-57.1/source/i18n/ztrans.o ar @/tmp/tmpl0nddkr9.lnk gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Skipping ranlib for thin archive build/fedora/third_party/icu4c-57.1/source/libicu_i18n.a g++ -o build/fedora/mongo/util/base64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/base64.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/chariter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/commands/server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/server_status.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/dictionarydata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/matcher/expression_algo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_algo.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/server_status.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_algo.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_algo.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_algo.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:36: 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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp: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_algo.cpp:39: 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:57:25: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:57: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:259:21: warning: redundant move in return statement [-Wredundant-move] 259 | return std::move(splitAnd); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:259: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:275:21: warning: redundant move in return statement [-Wredundant-move] 275 | return std::move(splitNor); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:275:21: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/server_status.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/feature_compatibility_version_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/feature_compatibility_version_parser.cpp ar rcsTD build/fedora/mongo/db/commands/libserver_status.a build/fedora/mongo/db/commands/server_status.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libserver_status.a g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_num_array_items.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp ar rcsTD build/fedora/mongo/s/libsharding_api.a build/fedora/mongo/s/write_ops/cluster_write.o Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_api.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/update/array_culling_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/array_culling_node.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/matcher/expression_array.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.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 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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/array_culling_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/array_culling_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/array_culling_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/shell/linenoise_utf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/linenoise_utf8.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/liblinenoise_utf8.a build/fedora/mongo/shell/linenoise_utf8.o Skipping ranlib for thin archive build/fedora/mongo/liblinenoise_utf8.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/matcher/expression_where_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_where_noop.cpp g++ -o build/fedora/mongo/util/net/ssl_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/ssl_manager.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where_noop.h:31, from src/mongo/db/matcher/expression_where_noop.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where_noop.h:31, from src/mongo/db/matcher/expression_where_noop.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where_noop.h:31, from src/mongo/db/matcher/expression_where_noop.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:55:21: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where_noop.cpp:55:21: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/commands/cluster_multicast.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_multicast.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/net/ssl_manager.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/net/ssl_manager.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/util/net/ssl_manager.h:40, from src/mongo/util/net/ssl_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/net/ssl_manager.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/net/ssl_manager.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_multicast.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/util/net/ssl_manager.h:40, from src/mongo/util/net/ssl_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_multicast.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_multicast.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_multicast.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_multicast.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_multicast.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/util/net/ssl_manager.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_multicast.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/uloc_keytype.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/transport/transport_layer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/transport/transport_layer_manager.cpp g++ -o build/fedora/mongo/db/auth/user_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/user_name.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/s2/s2regionintersection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2regionintersection.cc gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/base/error_codes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/base/error_codes.cpp g++ -o build/fedora/mongo/db/fts/fts_query_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/fts_query_noop.cpp src/mongo/db/fts/fts_query_noop.cpp: In member function 'virtual std::unique_ptr mongo::fts::FTSQueryNoop::clone() const': src/mongo/db/fts/fts_query_noop.cpp:44:21: warning: redundant move in return statement [-Wredundant-move] 44 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_noop.cpp:44:21: note: remove 'std::move' call ar rcsTD build/fedora/mongo/s/catalog/libreplset_dist_lock_manager.a build/fedora/mongo/s/catalog/replset_dist_lock_manager.o Skipping ranlib for thin archive build/fedora/mongo/s/catalog/libreplset_dist_lock_manager.a ar rcsTD build/fedora/mongo/transport/libtransport_layer_manager.a build/fedora/mongo/transport/transport_layer_manager.o Skipping ranlib for thin archive build/fedora/mongo/transport/libtransport_layer_manager.a ar rcsTD build/fedora/mongo/rpc/libobject_check.a build/fedora/mongo/rpc/object_check.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libobject_check.a g++ -o build/fedora/mongo/db/update/update_internal_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/update_internal_node.cpp gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u16.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/pipeline/parsed_inclusion_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/parsed_inclusion_projection.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_inclusion_projection.h:33, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_inclusion_projection.h:33, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_inclusion_projection.h:33, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/pipeline/expression.h:103:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/executor/connection_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/connection_pool_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.h:35, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.h:35, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/pipeline/value_internal.h:35, from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/pipeline/expression.h:40, from src/mongo/db/pipeline/parsed_inclusion_projection.h:33, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, boost::intrusive_ptr, mongo::StringMapTraits>': src/mongo/db/pipeline/parsed_inclusion_projection.h:171:49: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = boost::intrusive_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/sharding_egress_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/pipeline/document_source.h:44, from src/mongo/db/pipeline/document_source_single_document_transformation.h:31, from src/mongo/db/pipeline/parsed_aggregation_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.h:35, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/umutex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/bytestrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/s2/s2regionunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2regionunion.cc g++ -o build/fedora/mongo/db/commands/authentication_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/authentication_commands.cpp ar rcsTD build/fedora/mongo/db/pipeline/libparsed_aggregation_projection.a build/fedora/mongo/db/pipeline/parsed_aggregation_projection.o build/fedora/mongo/db/pipeline/parsed_exclusion_projection.o build/fedora/mongo/db/pipeline/parsed_inclusion_projection.o build/fedora/mongo/db/pipeline/parsed_add_fields.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libparsed_aggregation_projection.a g++ -o build/fedora/mongo/db/commands/generic_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/generic_servers.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic_servers.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic_servers.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/generic_servers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/authentication_commands.cpp:50: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic_servers.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/authentication_commands.cpp:50: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/algorithm.h:35, from src/mongo/db/commands/authentication_commands.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic_servers.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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/authentication_commands.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/authentication_commands.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/generic_servers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/algorithm.h:35, from src/mongo/db/commands/authentication_commands.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/generic_servers.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/authentication_commands.cpp:50: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/util/bson_extract.h:33, from src/mongo/db/commands/generic_servers.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/third_party/libshim_intel_decimal128.a build/fedora/third_party/shim_intel_decimal128.o Skipping ranlib for thin archive build/fedora/third_party/libshim_intel_decimal128.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/uniset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/commands/libservers.a build/fedora/mongo/db/commands/authentication_commands.o build/fedora/mongo/db/commands/conn_pool_stats.o build/fedora/mongo/db/commands/conn_pool_sync.o build/fedora/mongo/db/commands/connection_status.o build/fedora/mongo/db/commands/generic_servers.o build/fedora/mongo/db/commands/isself.o build/fedora/mongo/db/commands/mr_common.o build/fedora/mongo/db/commands/reap_logical_session_cache_now.o build/fedora/mongo/db/commands/refresh_sessions_command_internal.o build/fedora/mongo/db/commands/user_management_commands_common.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libservers.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/umath.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/auth/address_restriction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/address_restriction.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/field_ref_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/field_ref_set.cpp g++ -o build/fedora/mongo/s/catalog/dist_lock_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/dist_lock_catalog_impl.cpp ar rcsTD build/fedora/mongo/db/auth/libaddress_restriction.a build/fedora/mongo/db/auth/address_restriction.o build/fedora/mongo/db/auth/address_restriction_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libaddress_restriction.a g++ -o build/fedora/mongo/db/hasher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/hasher.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/utrie2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/query/collation/libcollator_factory_interface.a build/fedora/mongo/db/query/collation/collator_factory_interface.o Skipping ranlib for thin archive build/fedora/mongo/db/query/collation/libcollator_factory_interface.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/ops/write_ops_parsers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/write_ops_parsers.cpp g++ -o build/fedora/mongo/util/concurrency/idle_thread_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/concurrency/idle_thread_block.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucasemap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/udataswp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/util/exception_filter_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/exception_filter_win32.cpp g++ -o build/fedora/mongo/transport/message_compressor_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/message_compressor_zlib.cpp g++ -o build/fedora/third_party/murmurhash3/MurmurHash3.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc -Ibuild/fedora -Isrc src/third_party/murmurhash3/MurmurHash3.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/transport/message_compressor_base.h:31, from src/mongo/transport/message_compressor_registry.h:33, from src/mongo/transport/message_compressor_zlib.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/stats/operation_latency_histogram.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/operation_latency_histogram.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/update/bit_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/bit_node.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/operation_latency_histogram.h:32, from src/mongo/db/stats/operation_latency_histogram.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/operation_latency_histogram.h:32, from src/mongo/db/stats/operation_latency_histogram.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/stats/operation_latency_histogram.h:32, from src/mongo/db/stats/operation_latency_histogram.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/bit_node.h:31, from src/mongo/db/update/bit_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/bit_node.h:31, from src/mongo/db/update/bit_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/operation_latency_histogram.h:32, from src/mongo/db/stats/operation_latency_histogram.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/operation_latency_histogram.h:32, from src/mongo/db/stats/operation_latency_histogram.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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/bit_node.h:31, from src/mongo/db/update/bit_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/stats/operation_latency_histogram.h:32, from src/mongo/db/stats/operation_latency_histogram.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libwrite_concern_options.a build/fedora/mongo/db/write_concern_options.o Skipping ranlib for thin archive build/fedora/mongo/db/libwrite_concern_options.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/config_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/config_server_catalog_cache_loader.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/operation_latency_histogram.h:32, from src/mongo/db/stats/operation_latency_histogram.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/util/fail_point.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/fail_point.cpp ar rcsTD build/fedora/mongo/util/libfail_point.a build/fedora/mongo/util/fail_point.o build/fedora/mongo/util/fail_point_registry.o build/fedora/mongo/util/fail_point_server_parameter.o build/fedora/mongo/util/fail_point_service.o Skipping ranlib for thin archive build/fedora/mongo/util/libfail_point.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/normalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/repl/libstorage_interface.a build/fedora/mongo/db/repl/storage_interface.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libstorage_interface.a g++ -o build/fedora/mongo/util/net/ssl_manager_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/ssl_manager_openssl.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/icuplug.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/s/libasync_requests_sender.a build/fedora/mongo/s/async_requests_sender.o Skipping ranlib for thin archive build/fedora/mongo/s/libasync_requests_sender.a g++ -o build/fedora/mongo/db/update/addtoset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/addtoset_node.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/addtoset_node.h:31, from src/mongo/db/update/addtoset_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/addtoset_node.h:31, from src/mongo/db/update/addtoset_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/addtoset_node.h:31, from src/mongo/db/update/addtoset_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/errno_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/errno_util.cpp ar rcsTD build/fedora/mongo/db/query/collation/libcollator_interface.a build/fedora/mongo/db/query/collation/collation_index_key.o build/fedora/mongo/db/query/collation/collation_spec.o build/fedora/mongo/db/query/collation/collator_interface.o Skipping ranlib for thin archive build/fedora/mongo/db/query/collation/libcollator_interface.a g++ -o build/fedora/mongo/util/platform_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/platform_init.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/concurrency/spin_lock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/concurrency/spin_lock.cpp ar rcsTD build/fedora/mongo/util/concurrency/libspin_lock.a build/fedora/mongo/util/concurrency/spin_lock.o Skipping ranlib for thin archive build/fedora/mongo/util/concurrency/libspin_lock.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/uscript.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/update/unset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/unset_node.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/unset_node.h:31, from src/mongo/db/update/unset_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/unset_node.h:31, from src/mongo/db/update/unset_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/unset_node.h:31, from src/mongo/db/update/unset_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_merge_chunks_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_merge_chunks_cmd.cpp g++ -o build/fedora/mongo/idl/idl_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/idl/idl_parser.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_merge_chunks_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_merge_chunks_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ ar rcsTD build/fedora/mongo/idl/libidl_parser.a build/fedora/mongo/idl/idl_parser.o src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/idl/libidl_parser.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/usc_impl.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/commands_public.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/commands_public.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/commands_public.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/commands_public.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/algorithm.h:35, from src/mongo/s/commands/commands_public.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/commands_public.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/commands_public.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/algorithm.h:35, from src/mongo/s/commands/commands_public.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:558:67: 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] 558 | for (const std::pair& resourcePrivilege : | ^~~~~~~~~~~~~~~~~ src/mongo/s/commands/commands_public.cpp:558:67: note: use non-reference type 'const std::pair' to make the copy explicit or 'const value_type&' {aka 'const std::pair&'} to prevent copying gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/commands_public.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/icu4c-57.1/source/common/uresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/commands/killcursors_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/killcursors_common.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/db/commands/killcursors_common.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/db/commands/killcursors_common.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/db/commands/killcursors_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/db/commands/killcursors_common.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/db/commands/killcursors_common.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/db/commands/killcursors_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/killcursors_common.h:29, from src/mongo/db/commands/killcursors_common.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/auth/libuser_name.a build/fedora/mongo/db/auth/user_name.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libuser_name.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/servnotf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/commands/cluster_validate_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_validate_cmd.cpp ar rcsTD build/fedora/mongo/db/commands/libkill_common.a build/fedora/mongo/db/commands/killcursors_common.o build/fedora/mongo/db/commands/kill_op_cmd_base.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libkill_common.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/bson/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/timestamp.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_validate_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_validate_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_validate_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_validate_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_validate_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_validate_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_str_length.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/matcher/expression_leaf.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_validate_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/service_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/service_context.cpp g++ -o build/fedora/mongo/db/storage/storage_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_options.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_context.h:36, from src/mongo/db/service_context.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_context.h:36, from src/mongo/db/service_context.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_context.h:36, from src/mongo/db/service_context.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/shim_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_zlib.cpp g++ -o build/fedora/mongo/db/matcher/expression_leaf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_leaf.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_leaf.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_leaf.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/matcher/expression_leaf.h:31, from src/mongo/db/matcher/expression_leaf.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_leaf.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_leaf.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/service_context.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/matcher/expression_leaf.h:31, from src/mongo/db/matcher/expression_leaf.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:383:21: warning: redundant move in return statement [-Wredundant-move] 383 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_leaf.cpp:383:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp: In lambda function: src/mongo/db/matcher/expression_leaf.cpp:547:29: warning: redundant move in return statement [-Wredundant-move] 547 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:547:29: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp:557:29: warning: redundant move in return statement [-Wredundant-move] 557 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:557:29: 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:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libservice_context.a build/fedora/mongo/db/client.o build/fedora/mongo/db/multi_key_path_tracker.o build/fedora/mongo/db/operation_context.o build/fedora/mongo/db/operation_context_group.o build/fedora/mongo/db/service_context.o build/fedora/mongo/db/server_recovery.o build/fedora/mongo/db/unclean_shutdown.o Skipping ranlib for thin archive build/fedora/mongo/db/libservice_context.a g++ -o build/fedora/mongo/db/query/expression_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/expression_index.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/expression_index.h:37, from src/mongo/db/query/expression_index.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/expression_index.h:37, from src/mongo/db/query/expression_index.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/geo/hash.h:31, from src/mongo/db/query/expression_index.h:33, from src/mongo/db/query/expression_index.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/expression_index.h:37, from src/mongo/db/query/expression_index.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:33, from src/mongo/db/query/expression_index.h:37, from src/mongo/db/query/expression_index.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/geo/hash.h:31, from src/mongo/db/query/expression_index.h:33, from src/mongo/db/query/expression_index.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/expression_index.h:37, from src/mongo/db/query/expression_index.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/ustrfmt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_time.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucharstrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/ucnv.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/fast_clock_source_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/fast_clock_source_factory.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/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/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/logger/log_severity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/log_severity.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/filterednormalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/ubidiwrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/auth/sasl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/sasl_options.cpp g++ -o build/fedora/mongo/db/matcher/expression_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_type.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_type.h:31, from src/mongo/db/matcher/expression_type.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_type.h:31, from src/mongo/db/matcher/expression_type.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/matcher/expression_leaf.h:31, from src/mongo/db/matcher/expression_type.h:31, from src/mongo/db/matcher/expression_type.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_type.h:31, from src/mongo/db/matcher/expression_type.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_type.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/matcher/extensions_callback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/extensions_callback.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/auth/libsasl_options.a build/fedora/mongo/db/auth/sasl_options.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libsasl_options.a g++ -o build/fedora/mongo/db/matcher/expression_with_placeholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_with_placeholder.cpp g++ -o build/fedora/mongo/db/matcher/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/matcher/expression_with_placeholder.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/matcher/expression_with_placeholder.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/matcher/expression_with_placeholder.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/expression_with_placeholder.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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: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/fedora/mongo/db/matcher/match_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/match_details.cpp g++ -o build/fedora/mongo/db/matcher/expression_text_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_text_base.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_with_placeholder.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text_base.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text_base.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/matcher/expression_leaf.h:31, from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text_base.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text_base.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_unique_items.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/unordered_fields_bsonelement_comparator.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.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 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:71:21: warning: redundant move in return statement [-Wredundant-move] 71 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:71:21: note: remove 'std::move' call g++ -o build/fedora/mongo/db/matcher/schema/expression_internal_schema_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp g++ -o build/fedora/mongo/db/matcher/expression_array.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_array.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/unordered_fields_bsonelement_comparator.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:32, from src/mongo/db/matcher/schema/expression_internal_schema_eq.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaEqMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:88:21: warning: redundant move in return statement [-Wredundant-move] 88 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:88:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/expression_array.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_path.h:31, from src/mongo/db/matcher/expression_array.h:38, from src/mongo/db/matcher/expression_array.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/matcher/expression_array.h:36, from src/mongo/db/matcher/expression_array.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_array.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 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/fedora/mongo/db/matcher/schema/expression_internal_schema_fmod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp g++ -o build/fedora/mongo/db/matcher/expression_tree.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_tree.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/matcher/expression_leaf.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:31, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:31: 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:49:25: warning: redundant move in return statement [-Wredundant-move] 49 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:49:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_tree.h:33, from src/mongo/db/matcher/expression_tree.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_tree.h:33, from src/mongo/db/matcher/expression_tree.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_tree.h:33, from src/mongo/db/matcher/expression_tree.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_tree.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 src/mongo/db/matcher/expression_tree.cpp: In lambda function: src/mongo/db/matcher/expression_tree.cpp:153:33: warning: redundant move in return statement [-Wredundant-move] 153 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.cpp:153:33: note: remove 'std::move' call g++ -o build/fedora/mongo/db/matcher/matchable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/matchable.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/config_server_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/config_server_client.cpp ar rcsTD build/fedora/mongo/db/matcher/libexpressions.a build/fedora/mongo/db/matcher/expression.o build/fedora/mongo/db/matcher/expression_algo.o build/fedora/mongo/db/matcher/expression_array.o build/fedora/mongo/db/matcher/expression_expr.o build/fedora/mongo/db/matcher/expression_geo.o build/fedora/mongo/db/matcher/expression_internal_expr_eq.o build/fedora/mongo/db/matcher/expression_leaf.o build/fedora/mongo/db/matcher/expression_parser.o build/fedora/mongo/db/matcher/expression_text_base.o build/fedora/mongo/db/matcher/expression_text_noop.o build/fedora/mongo/db/matcher/expression_tree.o build/fedora/mongo/db/matcher/expression_type.o build/fedora/mongo/db/matcher/expression_where_base.o build/fedora/mongo/db/matcher/expression_where_noop.o build/fedora/mongo/db/matcher/expression_with_placeholder.o build/fedora/mongo/db/matcher/extensions_callback.o build/fedora/mongo/db/matcher/extensions_callback_noop.o build/fedora/mongo/db/matcher/match_details.o build/fedora/mongo/db/matcher/matchable.o build/fedora/mongo/db/matcher/matcher.o build/fedora/mongo/db/matcher/matcher_type_set.o build/fedora/mongo/db/matcher/rewrite_expr.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_cond.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_eq.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_fmod.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_match_array_index.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_num_array_items.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_num_properties.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_object_match.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_str_length.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_unique_items.o build/fedora/mongo/db/matcher/schema/expression_internal_schema_xor.o build/fedora/mongo/db/matcher/schema/json_schema_parser.o Skipping ranlib for thin archive build/fedora/mongo/db/matcher/libexpressions.a g++ -o build/fedora/mongo/s/commands/cluster_count_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_count_cmd.cpp g++ -o build/fedora/mongo/executor/remote_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/remote_command_response.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_count_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_count_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_count_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_count_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/executor/remote_command_response.h:36, from src/mongo/executor/remote_command_response.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< , std::allocator > >(std::__cxx11::basic_string, std::allocator > const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::executor::RemoteCommandResponse::toString[abi:cxx11]() const' at src/mongo/executor/remote_command_response.cpp:96:54: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 489] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/executor/libremote_command.a build/fedora/mongo/executor/remote_command_request.o build/fedora/mongo/executor/remote_command_response.o Skipping ranlib for thin archive build/fedora/mongo/executor/libremote_command.a g++ -o build/fedora/mongo/db/index/btree_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/btree_key_generator.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_count_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/platform/process_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/process_id.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/uresbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uresbund.cpp ar rcsTD build/fedora/mongo/db/commands/libtest_commands_enabled.a build/fedora/mongo/db/commands/test_commands_enabled.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libtest_commands_enabled.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/uhash_us.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/cstring.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/s/commands/cluster_shutdown_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_shutdown_cmd.cpp g++ -o build/fedora/mongo/db/commands/current_op_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/current_op_common.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op_common.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op_common.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shutdown_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shutdown_cmd.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_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op_common.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op_common.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op_common.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/util/processinfo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/processinfo.cpp g++ -o build/fedora/mongo/s/commands/cluster_build_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_build_info.cpp ar rcsTD build/fedora/mongo/db/catalog/libdatabase.a build/fedora/mongo/db/catalog/database.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libdatabase.a g++ -o build/fedora/third_party/shim_pcrecpp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_pcrecpp.cc g++ -o build/fedora/mongo/s/commands/cluster_filemd5_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_filemd5_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_build_info.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_build_info.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_build_info.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_build_info.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_build_info.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_build_info.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_filemd5_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_filemd5_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_build_info.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/s/write_ops/batched_upsert_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/batched_upsert_detail.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/write_ops/batched_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/batched_command_request.cpp g++ -o build/fedora/mongo/db/auth/impersonation_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/impersonation_session.cpp ar rcsTD build/fedora/mongo/s/write_ops/libbatch_write_types.a build/fedora/mongo/s/write_ops/batched_command_request.o build/fedora/mongo/s/write_ops/batched_command_response.o build/fedora/mongo/s/write_ops/batched_upsert_detail.o build/fedora/mongo/s/write_ops/write_error_detail.o Skipping ranlib for thin archive build/fedora/mongo/s/write_ops/libbatch_write_types.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/unormcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/s2/s2r2rect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2r2rect.cc gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucharstrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/matcher/path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/path.cpp g++ -o build/fedora/mongo/db/query/datetime/init_timezone_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/datetime/init_timezone_data.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_context.h:36, from src/mongo/db/query/datetime/date_time_support.h:35, from src/mongo/db/query/datetime/init_timezone_data.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/matcher/libpath.a build/fedora/mongo/db/matcher/path.o build/fedora/mongo/db/matcher/path_internal.o Skipping ranlib for thin archive build/fedora/mongo/db/matcher/libpath.a g++ -o build/fedora/mongo/s/sharding_initialization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/sharding_initialization.cpp ar rcsTD build/fedora/mongo/db/query/datetime/libinit_timezone_data.a build/fedora/mongo/db/query/datetime/init_timezone_data.o Skipping ranlib for thin archive build/fedora/mongo/db/query/datetime/libinit_timezone_data.a g++ -o build/fedora/mongo/bson/bsonelement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bsonelement.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/s/sharding_initialization.h:34, from src/mongo/s/sharding_initialization.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from src/mongo/bson/bsonelement.h:34, from src/mongo/bson/bsonelement.cpp:32: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/sharding_initialization.cpp:65: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/sharding_initialization.cpp:65: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/s/sharding_initialization.h:34, from src/mongo/s/sharding_initialization.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/sharding_initialization.cpp:65: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/sharding_initialization.cpp:65: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/s/sharding_initialization.h:34, from src/mongo/s/sharding_initialization.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_compact_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_compact_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_compact_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_compact_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_compact_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_compact_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_compact_cmd.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:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/sharding_initialization.cpp:65: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_compact_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_compact_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/rpc/metadata/client_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/client_metadata.cpp ar rcsTD build/fedora/mongo/s/libsharding_initialization.a build/fedora/mongo/s/sharding_initialization.o build/fedora/mongo/s/client/sharding_connection_hook.o build/fedora/mongo/s/client/sharding_network_connection_hook.o Skipping ranlib for thin archive build/fedora/mongo/s/libsharding_initialization.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/db/fts/libfts_query_noop.a build/fedora/mongo/db/fts/fts_query_noop.o Skipping ranlib for thin archive build/fedora/mongo/db/fts/libfts_query_noop.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/uhash.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/index_names.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index_names.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/db/index_names.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/uvectr64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/util/clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/clock_source.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/locutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/util/libperiodic_runner.a build/fedora/mongo/util/periodic_runner.o Skipping ranlib for thin archive build/fedora/mongo/util/libperiodic_runner.a g++ -o build/fedora/mongo/base/string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/string_data.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/servls.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/util/options_parser/environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/environment.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/transport/message_compressor_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/message_compressor_metrics.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/transport/message_compressor_metrics.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/transport/message_compressor_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/transport/message_compressor_snappy.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/util/options_parser/environment.h:33, from src/mongo/util/options_parser/environment.cpp:28: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::optionenvironment::Environment::get(std::__cxx11::basic_string, std::allocator > const&, mongo::optionenvironment::Value*) const' at src/mongo/util/options_parser/environment.cpp:63:50: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 487] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/base/data_range_cursor.h:34, from src/mongo/transport/message_compressor_snappy.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/transport/libmessage_compressor.a build/fedora/mongo/transport/message_compressor_manager.o build/fedora/mongo/transport/message_compressor_metrics.o build/fedora/mongo/transport/message_compressor_registry.o build/fedora/mongo/transport/message_compressor_snappy.o build/fedora/mongo/transport/message_compressor_zlib.o Skipping ranlib for thin archive build/fedora/mongo/transport/libmessage_compressor.a g++ -o build/fedora/mongo/db/views/resolved_view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/views/resolved_view.cpp g++ -o build/fedora/mongo/db/views/view_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/views/view_graph.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/views/view_graph.h:34, from src/mongo/db/views/view_graph.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/views/view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/views/view.cpp ar rcsTD build/fedora/mongo/db/catalog/libuuid_catalog.a build/fedora/mongo/db/catalog/namespace_uuid_cache.o build/fedora/mongo/db/catalog/uuid_catalog.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libuuid_catalog.a g++ -o build/fedora/mongo/util/options_parser/startup_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/startup_options.cpp ar rcsTD build/fedora/mongo/db/views/libviews.a build/fedora/mongo/db/views/view.o build/fedora/mongo/db/views/view_catalog.o build/fedora/mongo/db/views/view_graph.o build/fedora/mongo/db/views/resolved_view.o Skipping ranlib for thin archive build/fedora/mongo/db/views/libviews.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/uchar.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/bson/simple_bsonobj_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/simple_bsonobj_comparator.cpp g++ -o build/fedora/mongo/rpc/metadata/oplog_query_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/oplog_query_metadata.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/base/data_type_terminated.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/data_type_terminated.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/rpc/metadata/oplog_query_metadata.h:31, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/oplog_query_metadata.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/oplog_query_metadata.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/rpc/metadata/oplog_query_metadata.h:31, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_write_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_write_cmd.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_write_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_write_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/client/remote_command_targeter.h:32, from src/mongo/s/commands/cluster_write_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_write_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_write_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/client/remote_command_targeter.h:32, from src/mongo/s/commands/cluster_write_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/catalog/dist_lock_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/dist_lock_catalog.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/base/initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/initializer.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_write_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.cpp ar rcsTD build/fedora/mongo/rpc/libclient_metadata.a build/fedora/mongo/rpc/metadata/client_metadata.o build/fedora/mongo/rpc/metadata/client_metadata_ismaster.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libclient_metadata.a g++ -o build/fedora/mongo/s/commands/cluster_fsync_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_fsync_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_fsync_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_fsync_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/client/read_preference.h:31, from src/mongo/s/commands/cluster_fsync_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_fsync_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_fsync_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 /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/s/commands/cluster_write_cmd.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/client/read_preference.h:31, from src/mongo/s/commands/cluster_fsync_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/uvectr32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/update/update_leaf_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/update_leaf_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_fsync_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/update_leaf_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/update_leaf_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/container/detail/copy_move_algo.hpp:38, from /usr/include/boost/container/detail/advanced_insert_int.hpp:28, from /usr/include/boost/container/vector.hpp:32, from /usr/include/boost/container/detail/flat_tree.hpp:30, from /usr/include/boost/container/flat_set.hpp:29, from src/mongo/bson/bson_comparator_interface_base.h:31, from src/mongo/bson/bsonobj_comparator_interface.h:31, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/client/read_preference.h:31, from src/mongo/s/commands/cluster_fsync_cmd.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/update_leaf_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_flush_router_config_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_flush_router_config_cmd.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/ubrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/executor/egress_tag_closer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/egress_tag_closer_manager.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_flush_router_config_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_flush_router_config_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_flush_router_config_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_flush_router_config_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_flush_router_config_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_flush_router_config_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/serv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/util/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/text.cpp ar rcsTD build/fedora/mongo/db/libgeneric_cursor.a build/fedora/mongo/db/generic_cursor_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/libgeneric_cursor.a ar rcsTD build/fedora/mongo/db/index/libkey_generator.a build/fedora/mongo/db/index/btree_key_generator.o build/fedora/mongo/db/index/expression_keys_private.o build/fedora/mongo/db/index/sort_key_generator.o Skipping ranlib for thin archive build/fedora/mongo/db/index/libkey_generator.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/unifunct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_flush_router_config_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/dbdirectclient.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/dbdirectclient.cpp g++ -o build/fedora/third_party/s2/s2latlng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2latlng.cc In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/dbdirectclient.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/dbdirectclient.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/dbdirectclient.h:31, from src/mongo/db/dbdirectclient.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/dbdirectclient.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/dbdirectclient.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/dbdirectclient.h:31, from src/mongo/db/dbdirectclient.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/third_party/s2/s2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2.cc src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/dbdirectclient.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/s2/s2pointregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2pointregion.cc src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/s2/s2regioncoverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2regioncoverer.cc ar rcsTD build/fedora/mongo/db/libdbdirectclient.a build/fedora/mongo/db/dbdirectclient.o Skipping ranlib for thin archive build/fedora/mongo/db/libdbdirectclient.a g++ -o build/fedora/third_party/s2/s2region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2region.cc g++ -o build/fedora/third_party/s2/s2cell.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2cell.cc g++ -o build/fedora/third_party/s2/s2edgeutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/s2edgeutil.cc gcc -o build/fedora/third_party/icu4c-57.1/source/common/locmap.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_cb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustrcase_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/utypes.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/s/commands/cluster_get_prev_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_get_prev_error_cmd.cpp ar rcsTD build/fedora/third_party/s2/libs2.a build/fedora/third_party/s2/s1angle.o build/fedora/third_party/s2/s2.o build/fedora/third_party/s2/s2cellid.o build/fedora/third_party/s2/s2latlng.o build/fedora/third_party/s2/s1interval.o build/fedora/third_party/s2/s2cap.o build/fedora/third_party/s2/s2cell.o build/fedora/third_party/s2/s2cellunion.o build/fedora/third_party/s2/s2edgeindex.o build/fedora/third_party/s2/s2edgeutil.o build/fedora/third_party/s2/s2latlngrect.o build/fedora/third_party/s2/s2loop.o build/fedora/third_party/s2/s2pointregion.o build/fedora/third_party/s2/s2polygon.o build/fedora/third_party/s2/s2polygonbuilder.o build/fedora/third_party/s2/s2polyline.o build/fedora/third_party/s2/s2r2rect.o build/fedora/third_party/s2/s2region.o build/fedora/third_party/s2/s2regioncoverer.o build/fedora/third_party/s2/s2regionintersection.o build/fedora/third_party/s2/s2regionunion.o Skipping ranlib for thin archive build/fedora/third_party/s2/libs2.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucat.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/util/options_parser/option_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/options_parser/option_section.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_prev_error_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_prev_error_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/tailable_mode_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/query/tailable_mode_gen.cpp ar rcsTD build/fedora/mongo/db/libindex_names.a build/fedora/mongo/db/index_names.o Skipping ranlib for thin archive build/fedora/mongo/db/libindex_names.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/cwchar.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/util/stacktrace.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/stacktrace.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/query/tailable_mode_gen.h:16, from build/fedora/mongo/db/query/tailable_mode_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/pipeline/libexpression.a build/fedora/mongo/db/pipeline/expression.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libexpression.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/putil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/putil.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/query/tailable_mode_gen.h:16, from build/fedora/mongo/db/query/tailable_mode_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/executor/libegress_tag_closer_manager.a build/fedora/mongo/executor/egress_tag_closer_manager.o Skipping ranlib for thin archive build/fedora/mongo/executor/libegress_tag_closer_manager.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/umapfile.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/normalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/query_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/query_knobs.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_shard_collection_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_shard_collection_cmd.cpp ar rcsTD build/fedora/mongo/db/query/libquery_knobs.a build/fedora/mongo/db/query/query_knobs.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libquery_knobs.a g++ -o build/fedora/mongo/s/commands/cluster_map_reduce_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_map_reduce_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_pipeline_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_pipeline_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_pipeline_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_pipeline_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/write_ops/batch_write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/write_ops/batch_write_op.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/resource.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/logger/console.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/console.cpp ar rcsTD build/fedora/third_party/icu4c-57.1/source/libicu_data.a build/fedora/third_party/icu4c-57.1/source/stubdata/stubdata.o Skipping ranlib for thin archive build/fedora/third_party/icu4c-57.1/source/libicu_data.a g++ -o build/fedora/mongo/s/commands/cluster_user_management_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_user_management_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_user_management_commands.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_user_management_commands.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/s/commands/cluster_user_management_commands.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_user_management_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_user_management_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/s/commands/cluster_user_management_commands.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_user_management_commands.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/s/write_ops/libcluster_write_op.a build/fedora/mongo/s/write_ops/batch_write_exec.o build/fedora/mongo/s/write_ops/batch_write_op.o build/fedora/mongo/s/write_ops/chunk_manager_targeter.o build/fedora/mongo/s/write_ops/write_op.o Skipping ranlib for thin archive build/fedora/mongo/s/write_ops/libcluster_write_op.a g++ -o build/fedora/mongo/s/commands/strategy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/strategy.cpp g++ -o build/fedora/mongo/s/commands/cluster_move_chunk_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_move_chunk_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/strategy.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/strategy.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/s/commands/strategy.h:33, from src/mongo/s/commands/strategy.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/strategy.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/strategy.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/s/commands/strategy.h:33, from src/mongo/s/commands/strategy.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, int, mongo::StringMapTraits>': src/mongo/s/commands/strategy.cpp:168:20: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/strategy.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_remove_shard_from_zone_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move 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/fedora/mongo/s/commands/cluster_distinct_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_distinct_cmd.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_distinct_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_distinct_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/bsonobj_comparator.h:32, from src/mongo/s/commands/cluster_distinct_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_distinct_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_distinct_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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/bsonobj_comparator.h:32, from src/mongo/s/commands/cluster_distinct_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_available_query_options_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_available_query_options_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_distinct_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_is_db_grid_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_is_db_grid_cmd.cpp g++ -o build/fedora/mongo/s/commands/cluster_create_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_create_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_is_db_grid_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_is_db_grid_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_create_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_create_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_create_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_control_balancer_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_control_balancer_cmd.cpp g++ -o build/fedora/mongo/s/commands/cluster_drop_indexes_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_drop_indexes_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_control_balancer_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_control_balancer_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_indexes_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_indexes_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp g++ -o build/fedora/mongo/s/commands/cluster_get_last_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_get_last_error_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_set_feature_compatibility_version_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_set_feature_compatibility_version_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/client/remote_command_targeter.h:32, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/client/remote_command_targeter.h:32, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_collection_mod_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_collection_mod_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_collection_mod_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_collection_mod_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/commands/cluster_move_primary_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_move_primary_cmd.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call g++ -o build/fedora/mongo/s/commands/cluster_add_shard_to_zone_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_to_zone_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_to_zone_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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/client/libauthentication.a build/fedora/mongo/client/authenticate.o Skipping ranlib for thin archive build/fedora/mongo/client/libauthentication.a g++ -o build/fedora/mongo/db/geo/hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/geo/hash.cpp ar rcsTD build/fedora/mongo/s/commands/libcluster_commands.a build/fedora/mongo/s/commands/cluster_add_shard_cmd.o build/fedora/mongo/s/commands/cluster_add_shard_to_zone_cmd.o build/fedora/mongo/s/commands/cluster_aggregate.o build/fedora/mongo/s/commands/cluster_available_query_options_cmd.o build/fedora/mongo/s/commands/cluster_build_info.o build/fedora/mongo/s/commands/cluster_coll_stats_cmd.o build/fedora/mongo/s/commands/cluster_collection_mod_cmd.o build/fedora/mongo/s/commands/cluster_compact_cmd.o build/fedora/mongo/s/commands/cluster_control_balancer_cmd.o build/fedora/mongo/s/commands/cluster_count_cmd.o build/fedora/mongo/s/commands/cluster_create_cmd.o build/fedora/mongo/s/commands/cluster_create_indexes_cmd.o build/fedora/mongo/s/commands/cluster_current_op.o build/fedora/mongo/s/commands/cluster_data_size_cmd.o build/fedora/mongo/s/commands/cluster_db_stats_cmd.o build/fedora/mongo/s/commands/cluster_distinct_cmd.o build/fedora/mongo/s/commands/cluster_drop_cmd.o build/fedora/mongo/s/commands/cluster_drop_database_cmd.o build/fedora/mongo/s/commands/cluster_drop_indexes_cmd.o build/fedora/mongo/s/commands/cluster_enable_sharding_cmd.o build/fedora/mongo/s/commands/cluster_eval_cmd.o build/fedora/mongo/s/commands/cluster_explain.o build/fedora/mongo/s/commands/cluster_explain_cmd.o build/fedora/mongo/s/commands/cluster_filemd5_cmd.o build/fedora/mongo/s/commands/cluster_find_and_modify_cmd.o build/fedora/mongo/s/commands/cluster_find_cmd.o build/fedora/mongo/s/commands/cluster_flush_router_config_cmd.o build/fedora/mongo/s/commands/cluster_fsync_cmd.o build/fedora/mongo/s/commands/cluster_ftdc_commands.o build/fedora/mongo/s/commands/cluster_geo_near_cmd.o build/fedora/mongo/s/commands/cluster_get_last_error_cmd.o build/fedora/mongo/s/commands/cluster_get_prev_error_cmd.o build/fedora/mongo/s/commands/cluster_get_shard_version_cmd.o build/fedora/mongo/s/commands/cluster_getmore_cmd.o build/fedora/mongo/s/commands/cluster_index_filter_cmd.o build/fedora/mongo/s/commands/cluster_is_db_grid_cmd.o build/fedora/mongo/s/commands/cluster_is_master_cmd.o build/fedora/mongo/s/commands/cluster_kill_op.o build/fedora/mongo/s/commands/cluster_killcursors_cmd.o build/fedora/mongo/s/commands/cluster_list_databases_cmd.o build/fedora/mongo/s/commands/cluster_list_shards_cmd.o build/fedora/mongo/s/commands/cluster_map_reduce_cmd.o build/fedora/mongo/s/commands/cluster_merge_chunks_cmd.o build/fedora/mongo/s/commands/cluster_move_chunk_cmd.o build/fedora/mongo/s/commands/cluster_move_primary_cmd.o build/fedora/mongo/s/commands/cluster_multicast.o build/fedora/mongo/s/commands/cluster_netstat_cmd.o build/fedora/mongo/s/commands/cluster_pipeline_cmd.o build/fedora/mongo/s/commands/cluster_plan_cache_cmd.o build/fedora/mongo/s/commands/cluster_profile_cmd.o build/fedora/mongo/s/commands/cluster_reindex_cmd.o build/fedora/mongo/s/commands/cluster_remove_shard_cmd.o build/fedora/mongo/s/commands/cluster_remove_shard_from_zone_cmd.o build/fedora/mongo/s/commands/cluster_repl_set_get_status_cmd.o build/fedora/mongo/s/commands/cluster_reset_error_cmd.o build/fedora/mongo/s/commands/cluster_restart_catalog_command.o build/fedora/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.o build/fedora/mongo/s/commands/cluster_shard_collection_cmd.o build/fedora/mongo/s/commands/cluster_shutdown_cmd.o build/fedora/mongo/s/commands/cluster_split_cmd.o build/fedora/mongo/s/commands/cluster_update_zone_key_range_cmd.o build/fedora/mongo/s/commands/cluster_user_management_commands.o build/fedora/mongo/s/commands/cluster_validate_cmd.o build/fedora/mongo/s/commands/cluster_whats_my_uri_cmd.o build/fedora/mongo/s/commands/cluster_write_cmd.o build/fedora/mongo/s/commands/commands_public.o build/fedora/mongo/s/commands/kill_sessions_remote.o build/fedora/mongo/s/commands/pipeline_s.o build/fedora/mongo/s/commands/strategy.o build/fedora/mongo/s/commands/cluster_multicast_gen.o Skipping ranlib for thin archive build/fedora/mongo/s/commands/libcluster_commands.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustr_wcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/commands/libserver_status_core.a build/fedora/mongo/db/commands/server_status_internal.o build/fedora/mongo/db/commands/server_status_metric.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libserver_status_core.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/resbund_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/client/fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/fetcher.cpp ar rcsTD build/fedora/mongo/db/geo/libgeometry.a build/fedora/mongo/db/geo/hash.o build/fedora/mongo/db/geo/shapes.o build/fedora/mongo/db/geo/big_polygon.o build/fedora/mongo/db/geo/r2_region_coverer.o Skipping ranlib for thin archive build/fedora/mongo/db/geo/libgeometry.a ar rcsTD build/fedora/mongo/s/commands/libcluster_commands_helpers.a build/fedora/mongo/s/commands/cluster_commands_helpers.o Skipping ranlib for thin archive build/fedora/mongo/s/commands/libcluster_commands_helpers.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/query/tailable_mode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/tailable_mode.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/client/fetcher.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/client/fetcher.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/client/fetcher.h:39, from src/mongo/client/fetcher.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/client/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/client/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 g++ -o build/fedora/mongo/s/cluster_cursor_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/cluster_cursor_stats.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/client/fetcher.h:39, from src/mongo/client/fetcher.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/cluster_cursor_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/cluster_cursor_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/commands/server_status_metric.h:35, from src/mongo/s/cluster_cursor_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/cluster_cursor_stats.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/cluster_cursor_stats.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move 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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/client/fetcher.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59: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:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/commands/server_status_metric.h:35, from src/mongo/s/cluster_cursor_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/cluster_cursor_stats.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/db/storage/libstorage_options.a build/fedora/mongo/db/storage/storage_options.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libstorage_options.a ar rcsTD build/fedora/mongo/s/catalog/libdist_lock_catalog_interface.a build/fedora/mongo/s/catalog/dist_lock_catalog.o Skipping ranlib for thin archive build/fedora/mongo/s/catalog/libdist_lock_catalog_interface.a g++ -o build/fedora/mongo/db/auth/privilege_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/privilege_parser.cpp g++ -o build/fedora/third_party/icu4c-57.1/source/common/ulistformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/normlzr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_ext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/charstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/mongo/db/kill_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/kill_sessions.cpp g++ -o build/fedora/mongo/db/kill_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/kill_sessions_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/kill_sessions_gen.h:16, from build/fedora/mongo/db/kill_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/kill_sessions_gen.h:16, from build/fedora/mongo/db/kill_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/update/push_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/push_node.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/push_node.h:35, from src/mongo/db/update/push_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/push_node.h:35, from src/mongo/db/update/push_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/push_node.h:35, from src/mongo/db/update/push_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/update/push_node.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: 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: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:38, from src/mongo/db/update/push_node.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libkill_sessions.a build/fedora/mongo/db/kill_sessions.o build/fedora/mongo/db/kill_sessions_common.o build/fedora/mongo/db/session_killer.o build/fedora/mongo/db/kill_sessions_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/libkill_sessions.a g++ -o build/fedora/mongo/rpc/metadata/repl_set_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/repl_set_metadata.cpp g++ -o build/fedora/mongo/platform/stack_locator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/stack_locator.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/repl_set_metadata.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/repl_set_metadata.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/rpc/metadata/repl_set_metadata.h:31, from src/mongo/rpc/metadata/repl_set_metadata.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/s/query/cluster_cursor_cleanup_job.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/query/cluster_cursor_cleanup_job.cpp In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/repl_set_metadata.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/repl_set_metadata.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/rpc/metadata/repl_set_metadata.h:31, from src/mongo/rpc/metadata/repl_set_metadata.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, 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 src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/repl_set_metadata.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/util/net/libssl_types.a build/fedora/mongo/util/net/ssl_types.o Skipping ranlib for thin archive build/fedora/mongo/util/net/libssl_types.a g++ -o build/fedora/mongo/executor/network_interface_thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/network_interface_thread_pool.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, 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::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/s/query/libcluster_cursor_cleanup_job.a build/fedora/mongo/s/query/cluster_cursor_cleanup_job.o Skipping ranlib for thin archive build/fedora/mongo/s/query/libcluster_cursor_cleanup_job.a g++ -o build/fedora/mongo/s/server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/server.cpp ar rcsTD build/fedora/mongo/executor/libnetwork_interface_thread_pool.a build/fedora/mongo/executor/network_interface_thread_pool.o Skipping ranlib for thin archive build/fedora/mongo/executor/libnetwork_interface_thread_pool.a g++ -o build/fedora/mongo/executor/task_executor_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/executor/task_executor_pool.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/s/server.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/executor/libtask_executor_pool.a build/fedora/mongo/executor/task_executor_pool.o Skipping ranlib for thin archive build/fedora/mongo/executor/libtask_executor_pool.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/base/shim.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/shim.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/server.cpp:83: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/server.cpp:83: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/third_party/icu4c-57.1/source/common/propname.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/s/server.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/server.cpp:83: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/server.cpp:83: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/fedora/mongo/util/net/ssl_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/ssl_parameters.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/s/server.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/auth/sasl_command_constants.h:31, from src/mongo/util/net/ssl_parameters.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/util/net/ssl_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/net/ssl_stream.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:36, from src/mongo/s/query/cluster_client_cursor_params.h:41, from src/mongo/s/query/cluster_client_cursor.h:37, from src/mongo/s/query/cluster_cursor_manager.h:41, from src/mongo/s/server.cpp:83: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/util/net/libssl_manager_impl.a build/fedora/mongo/util/net/private/ssl_expiration.o build/fedora/mongo/util/net/ssl_manager.o build/fedora/mongo/util/net/ssl_parameters.o build/fedora/mongo/util/net/ssl_manager_openssl.o build/fedora/mongo/util/net/ssl_stream.o Skipping ranlib for thin archive build/fedora/mongo/util/net/libssl_manager_impl.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/s2/util/math/mathutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/third_party/s2/util/math/mathutil.cc g++ -o build/fedora/mongo/base/init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/init.cpp ar rcsTD build/fedora/mongo/db/auth/libauth_rolename.a build/fedora/mongo/db/auth/role_name.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauth_rolename.a g++ -o build/fedora/mongo/util/allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/allocator.cpp g++ -o build/fedora/mongo/util/icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/icu.cpp ar rcsTD build/fedora/third_party/murmurhash3/libmurmurhash3.a build/fedora/third_party/murmurhash3/MurmurHash3.o Skipping ranlib for thin archive build/fedora/third_party/murmurhash3/libmurmurhash3.a ar rcsTD build/fedora/mongo/db/pipeline/libaggregation.a build/fedora/mongo/db/pipeline/aggregation.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libaggregation.a g++ -o build/fedora/mongo/db/update/pull_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/pull_node.cpp ar rcsTD build/fedora/mongo/util/libicu.a build/fedora/mongo/util/icu.o Skipping ranlib for thin archive build/fedora/mongo/util/libicu.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/caniter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/db/libkeys_collection_document.a build/fedora/mongo/db/keys_collection_document.o Skipping ranlib for thin archive build/fedora/mongo/db/libkeys_collection_document.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/executor/libconnection_pool_stats.a build/fedora/mongo/executor/connection_pool_stats.o Skipping ranlib for thin archive build/fedora/mongo/executor/libconnection_pool_stats.a ar rcsTD build/fedora/mongo/db/libglobal_settings.a build/fedora/mongo/db/global_settings.o Skipping ranlib for thin archive build/fedora/mongo/db/libglobal_settings.a g++ -o build/fedora/mongo/platform/strcasestr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/platform/strcasestr.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/pull_node.h:31, from src/mongo/db/update/pull_node.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ g++ -o build/fedora/mongo/s/catalog/sharding_catalog_client_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/catalog/sharding_catalog_client_impl.cpp In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/document_comparator.h:32, from src/mongo/db/pipeline/expression_context.h:41, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/pull_node.h:31, from src/mongo/db/update/pull_node.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:31, from src/mongo/db/update/modifier_node.h:31, from src/mongo/db/update/array_culling_node.h:32, from src/mongo/db/update/pull_node.h:31, from src/mongo/db/update/pull_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/copyable_match_expression.h:31, from src/mongo/db/update/pull_node.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:31, from src/mongo/db/update/pull_node.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/s/catalog/sharding_catalog_client_impl.h:31, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/s/catalog/sharding_catalog_client_impl.h:31, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:31, from src/mongo/db/update/pull_node.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/bson/bson_depth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bson_depth.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/stringutils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/stringutils.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustrtrns.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/db/repl/libisself.a build/fedora/mongo/db/repl/isself.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libisself.a ar rcsTD build/fedora/third_party/s2/util/math/libmath.a build/fedora/third_party/s2/util/math/mathutil.o Skipping ranlib for thin archive build/fedora/third_party/s2/util/math/libmath.a ar rcsTD build/fedora/mongo/db/liblogical_time_validator.a build/fedora/mongo/db/logical_time_validator.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_time_validator.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/s/catalog/libdist_lock_catalog_impl.a build/fedora/mongo/s/catalog/dist_lock_catalog_impl.o Skipping ranlib for thin archive build/fedora/mongo/s/catalog/libdist_lock_catalog_impl.a ar rcsTD build/fedora/mongo/db/index/libindex_descriptor.a build/fedora/mongo/db/index/index_descriptor.o Skipping ranlib for thin archive build/fedora/mongo/db/index/libindex_descriptor.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucnvbocu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvbocu.cpp ar rcsTD build/fedora/mongo/db/liblogical_time.a build/fedora/mongo/db/logical_time.o build/fedora/mongo/db/operation_time_tracker.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_time.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_err.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/s/query/libcluster_client_cursor.a build/fedora/mongo/s/query/cluster_client_cursor_impl.o Skipping ranlib for thin archive build/fedora/mongo/s/query/libcluster_client_cursor.a g++ -o build/fedora/mongo/db/auth/user_management_commands_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/user_management_commands_parser.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_management_commands_parser.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_management_commands_parser.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/user_management_commands_parser.h:37, from src/mongo/db/auth/user_management_commands_parser.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_management_commands_parser.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_management_commands_parser.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/user_management_commands_parser.h:37, from src/mongo/db/auth/user_management_commands_parser.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/s/catalog/libsharding_catalog_client_impl.a build/fedora/mongo/s/catalog/sharding_catalog_client_impl.o Skipping ranlib for thin archive build/fedora/mongo/s/catalog/libsharding_catalog_client_impl.a g++ -o build/fedora/mongo/rpc/metadata/config_server_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/config_server_metadata.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/user_management_commands_parser.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/auth/user_management_commands_parser.h:35, from src/mongo/db/auth/user_management_commands_parser.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61, inlined from 'mongo::BSONElement::String[abi:cxx11]() const' at src/mongo/bson/bsonelement.h:109:19: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/config_server_metadata.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/config_server_metadata.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/rpc/metadata/config_server_metadata.h:31, from src/mongo/rpc/metadata/config_server_metadata.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/config_server_metadata.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/config_server_metadata.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/rpc/metadata/config_server_metadata.h:31, from src/mongo/rpc/metadata/config_server_metadata.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/config_server_metadata.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/keys_collection_client_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/keys_collection_client_sharded.cpp g++ -o build/fedora/mongo/logger/rotatable_file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/rotatable_file_manager.cpp ar rcsTD build/fedora/mongo/db/pipeline/libfield_path.a build/fedora/mongo/db/pipeline/field_path.o Skipping ranlib for thin archive build/fedora/mongo/db/pipeline/libfield_path.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/rpc/liblegacy_request.a build/fedora/mongo/rpc/legacy_request.o build/fedora/mongo/rpc/legacy_request_builder.o Skipping ranlib for thin archive build/fedora/mongo/rpc/liblegacy_request.a g++ -o build/fedora/mongo/util/assert_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/assert_util.cpp ar rcsTD build/fedora/mongo/shell/libmongojs.a build/fedora/mongo/shell/mongo.o Skipping ranlib for thin archive build/fedora/mongo/shell/libmongojs.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/locbased.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/util_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/appendable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/ustring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/base/data_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/data_range.cpp ar rcsTD build/fedora/third_party/asio-master/libasio.a build/fedora/third_party/asio-master/asio/src/asio.o Skipping ranlib for thin archive build/fedora/third_party/asio-master/libasio.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/ucol_swp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/stringpiece.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/stringpiece.cpp ar rcsTD build/fedora/mongo/db/commands/libfeature_compatibility_parsers.a build/fedora/mongo/db/commands/feature_compatibility_version_parser.o build/fedora/mongo/db/commands/feature_compatibility_version_command_parser.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libfeature_compatibility_parsers.a ar rcsTD build/fedora/mongo/crypto/libsha1_block.a build/fedora/mongo/crypto/sha1_block.o Skipping ranlib for thin archive build/fedora/mongo/crypto/libsha1_block.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.c ar rcsTD build/fedora/mongo/db/ops/libwrite_ops_parsers.a build/fedora/mongo/db/ops/write_ops_parsers.o build/fedora/mongo/db/ops/write_ops_gen.o cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Skipping ranlib for thin archive build/fedora/mongo/db/ops/libwrite_ops_parsers.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/base/system_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/system_error.cpp ar rcsTD build/fedora/mongo/base/libsystem_error.a build/fedora/mongo/base/system_error.o Skipping ranlib for thin archive build/fedora/mongo/base/libsystem_error.a g++ -o build/fedora/mongo/util/time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/time_support.cpp g++ -o build/fedora/mongo/db/signed_logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/signed_logical_time.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/util/time_support.h:38, from src/mongo/util/time_support.cpp:30: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::(anonymous namespace)::parseMillisFromToken(mongo::StringData, int*)' at src/mongo/util/time_support.cpp:367:77: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 460] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::(anonymous namespace)::parseTimeZoneFromToken(mongo::StringData, int*)' at src/mongo/util/time_support.cpp:349:54: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 484] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::(anonymous namespace)::parseTm(mongo::StringData, tm*, int*, int*)' at src/mongo/util/time_support.cpp:558:50, inlined from 'mongo::dateFromISOString(mongo::StringData)' at src/mongo/util/time_support.cpp:617:70: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 487] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::(anonymous namespace)::parseTm(mongo::StringData, tm*, int*, int*)' at src/mongo/util/time_support.cpp:579:50, inlined from 'mongo::dateFromISOString(mongo::StringData)' at src/mongo/util/time_support.cpp:617:70: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 487] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::(anonymous namespace)::parseTmFromTokens(mongo::StringData, mongo::StringData, mongo::StringData, mongo::StringData, mongo::StringData, mongo::StringData, tm*)' at src/mongo/util/time_support.cpp:409:57, inlined from 'mongo::(anonymous namespace)::parseTm(mongo::StringData, tm*, int*, int*)' at src/mongo/util/time_support.cpp:593:99, inlined from 'mongo::dateFromISOString(mongo::StringData)' at src/mongo/util/time_support.cpp:617:70: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 476] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::(anonymous namespace)::parseTmFromTokens(mongo::StringData, mongo::StringData, mongo::StringData, mongo::StringData, mongo::StringData, mongo::StringData, tm*)' at src/mongo/util/time_support.cpp:429:57, inlined from 'mongo::(anonymous namespace)::parseTm(mongo::StringData, tm*, int*, int*)' at src/mongo/util/time_support.cpp:593:99, inlined from 'mongo::dateFromISOString(mongo::StringData)' at src/mongo/util/time_support.cpp:617:70: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 476] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/libsigned_logical_time.a build/fedora/mongo/db/signed_logical_time.o Skipping ranlib for thin archive build/fedora/mongo/db/libsigned_logical_time.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/rbbinode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_cnv.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/unames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/bson/util/libbson_extract.a build/fedora/mongo/bson/util/bson_extract.o Skipping ranlib for thin archive build/fedora/mongo/bson/util/libbson_extract.a ar rcsTD build/fedora/mongo/db/auth/libuser.a build/fedora/mongo/db/auth/user.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libuser.a g++ -o build/fedora/mongo/db/query/index_bounds_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/index_bounds_builder.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/logger/message_event_utf8_encoder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/message_event_utf8_encoder.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/index_bounds_builder.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/index_bounds_builder.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/hasher.h:38, from src/mongo/db/query/index_bounds_builder.h:31, from src/mongo/db/query/index_bounds_builder.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/index_bounds_builder.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:33, from src/mongo/db/query/index_bounds_builder.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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/utext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/hasher.h:38, from src/mongo/db/query/index_bounds_builder.h:31, from src/mongo/db/query/index_bounds_builder.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/brkeng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/logger/component_message_log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/component_message_log_domain.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:33, from src/mongo/db/query/index_bounds_builder.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/third_party/libshim_stemmer.a build/fedora/third_party/shim_stemmer.o Skipping ranlib for thin archive build/fedora/third_party/libshim_stemmer.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/filteredbrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/udata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/util/concurrency/thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/concurrency/thread_pool.cpp g++ -o build/fedora/mongo/util/uuid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/uuid.cpp ar rcsTD build/fedora/mongo/util/libprocessinfo.a build/fedora/mongo/util/processinfo.o build/fedora/mongo/util/processinfo_linux.o Skipping ranlib for thin archive build/fedora/mongo/util/libprocessinfo.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/rbbisetb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C ar rcsTD build/fedora/mongo/client/libclient_query.a build/fedora/mongo/client/query.o Skipping ranlib for thin archive build/fedora/mongo/client/libclient_query.a gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/third_party/icu4c-57.1/source/common/dictbe.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/listformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/bson/json.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/json.cpp gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/rpc/metadata/tracking_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/tracking_metadata.cpp g++ -o build/fedora/mongo/rpc/metadata/sharding_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/rpc/metadata/sharding_metadata.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/tracking_metadata.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/tracking_metadata.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/rpc/metadata/tracking_metadata.h:31, from src/mongo/rpc/metadata/tracking_metadata.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/tracking_metadata.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/tracking_metadata.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/fedora/mongo/db/catalog/libcollection.a build/fedora/mongo/db/catalog/collection.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libcollection.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/rpc/metadata/tracking_metadata.h:31, from src/mongo/rpc/metadata/tracking_metadata.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C g++ -o build/fedora/mongo/db/stats/top.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/top.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/rpc/metadata/tracking_metadata.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/top.h:34, from src/mongo/db/stats/top.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/top.h:34, from src/mongo/db/stats/top.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/stats/top.h:34, from src/mongo/db/stats/top.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/top.h:34, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/top.h:34, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/stats/top.h:34, from src/mongo/db/stats/top.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/rpc/libmetadata.a build/fedora/mongo/rpc/metadata.o build/fedora/mongo/rpc/metadata/config_server_metadata.o build/fedora/mongo/rpc/metadata/egress_metadata_hook_list.o build/fedora/mongo/rpc/metadata/logical_time_metadata.o build/fedora/mongo/rpc/metadata/sharding_metadata.o build/fedora/mongo/rpc/metadata/repl_set_metadata.o build/fedora/mongo/rpc/metadata/oplog_query_metadata.o build/fedora/mongo/rpc/metadata/tracking_metadata.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libmetadata.a gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/stats/top.h:34, from src/mongo/db/stats/top.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C gcc -o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -DLINUX=1 -Dlinux=1 -DIA32=1 -Dia32=1 -Dgcc=1 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.c cc1: warning: command-line option '-Wno-exceptions' is valid for C++/ObjC++ but not for C Using tempfile /tmp/tmpbb5tmfej.lnk for command line: ar rcsTD build/fedora/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.o build/fedora/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.o ar @/tmp/tmpbb5tmfej.lnk Skipping ranlib for thin archive build/fedora/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a g++ -o build/fedora/mongo/bson/bsonobjbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/bson/bsonobjbuilder.cpp ar rcsTD build/fedora/mongo/db/stats/libtop.a build/fedora/mongo/db/stats/top.o build/fedora/mongo/db/stats/operation_latency_histogram.o Skipping ranlib for thin archive build/fedora/mongo/db/stats/libtop.a g++ -o build/fedora/mongo/s/cluster_identity_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/cluster_identity_loader.cpp g++ -o build/fedora/mongo/db/auth/action_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/action_set.cpp ar rcsTD build/fedora/mongo/s/libcoreshard.a build/fedora/mongo/s/catalog_cache_loader.o build/fedora/mongo/s/cluster_identity_loader.o build/fedora/mongo/s/config_server_catalog_cache_loader.o build/fedora/mongo/s/config_server_client.o build/fedora/mongo/s/shard_util.o build/fedora/mongo/s/sharding_egress_metadata_hook.o Skipping ranlib for thin archive build/fedora/mongo/s/libcoreshard.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/uidna.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/icudataver.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/query/libquery_request.a build/fedora/mongo/db/query/query_request.o build/fedora/mongo/db/query/tailable_mode.o build/fedora/mongo/db/query/tailable_mode_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libquery_request.a ar rcsTD build/fedora/third_party/libshim_zlib.a build/fedora/third_party/shim_zlib.o Skipping ranlib for thin archive build/fedora/third_party/libshim_zlib.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/locdspnm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/ustr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnvscsu.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 ar rcsTD build/fedora/mongo/db/libmongodandmongos.a build/fedora/mongo/db/initialize_server_global_state.o build/fedora/mongo/db/server_options_init.o Skipping ranlib for thin archive build/fedora/mongo/db/libmongodandmongos.a ar rcsTD build/fedora/mongo/db/ftdc/libftdc_mongos.a build/fedora/mongo/db/ftdc/ftdc_mongos.o Skipping ranlib for thin archive build/fedora/mongo/db/ftdc/libftdc_mongos.a ar rcsTD build/fedora/mongo/db/commands/libcurrent_op_common.a build/fedora/mongo/db/commands/current_op_common.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libcurrent_op_common.a g++ -o build/fedora/third_party/icu4c-57.1/source/common/rbbiscan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/rbbidata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/uniset_closure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/pluralmap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/uprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 g++ -o build/fedora/third_party/icu4c-57.1/source/common/errorcode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/rbbitblb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/uenum.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/uiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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 gcc -o build/fedora/third_party/icu4c-57.1/source/common/ucnv_set.o -c -std=c11 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/third_party/icu4c-57.1/source/common/unistr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -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/fedora/mongo/db/libupdate_index_data.a build/fedora/mongo/db/update_index_data.o Skipping ranlib for thin archive build/fedora/mongo/db/libupdate_index_data.a ar rcsTD build/fedora/mongo/db/libcommon.a build/fedora/mongo/db/field_ref.o build/fedora/mongo/db/field_ref_set.o build/fedora/mongo/db/field_parser.o build/fedora/mongo/db/keypattern.o Skipping ranlib for thin archive build/fedora/mongo/db/libcommon.a g++ -o build/fedora/mongo/s/s_sharding_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/s_sharding_server_status.cpp Using tempfile /tmp/tmp1eb34a1n.lnk for command line: ar rcsTD build/fedora/third_party/icu4c-57.1/source/libicu_common.a build/fedora/third_party/icu4c-57.1/source/common/appendable.o build/fedora/third_party/icu4c-57.1/source/common/bmpset.o build/fedora/third_party/icu4c-57.1/source/common/brkeng.o build/fedora/third_party/icu4c-57.1/source/common/brkiter.o build/fedora/third_party/icu4c-57.1/source/common/bytestream.o build/fedora/third_party/icu4c-57.1/source/common/bytestrie.o build/fedora/third_party/icu4c-57.1/source/common/bytestriebuilder.o build/fedora/third_party/icu4c-57.1/source/common/bytestrieiterator.o build/fedora/third_party/icu4c-57.1/source/common/caniter.o build/fedora/third_party/icu4c-57.1/source/common/chariter.o build/fedora/third_party/icu4c-57.1/source/common/charstr.o build/fedora/third_party/icu4c-57.1/source/common/cmemory.o build/fedora/third_party/icu4c-57.1/source/common/cstr.o build/fedora/third_party/icu4c-57.1/source/common/cstring.o build/fedora/third_party/icu4c-57.1/source/common/cwchar.o build/fedora/third_party/icu4c-57.1/source/common/dictbe.o build/fedora/third_party/icu4c-57.1/source/common/dictionarydata.o build/fedora/third_party/icu4c-57.1/source/common/dtintrv.o build/fedora/third_party/icu4c-57.1/source/common/errorcode.o build/fedora/third_party/icu4c-57.1/source/common/filteredbrk.o build/fedora/third_party/icu4c-57.1/source/common/filterednormalizer2.o build/fedora/third_party/icu4c-57.1/source/common/icudataver.o build/fedora/third_party/icu4c-57.1/source/common/icuplug.o build/fedora/third_party/icu4c-57.1/source/common/listformatter.o build/fedora/third_party/icu4c-57.1/source/common/loadednormalizer2impl.o build/fedora/third_party/icu4c-57.1/source/common/locavailable.o build/fedora/third_party/icu4c-57.1/source/common/locbased.o build/fedora/third_party/icu4c-57.1/source/common/locdispnames.o build/fedora/third_party/icu4c-57.1/source/common/locdspnm.o build/fedora/third_party/icu4c-57.1/source/common/locid.o build/fedora/third_party/icu4c-57.1/source/common/loclikely.o build/fedora/third_party/icu4c-57.1/source/common/locmap.o build/fedora/third_party/icu4c-57.1/source/common/locresdata.o build/fedora/third_party/icu4c-57.1/source/common/locutil.o build/fedora/third_party/icu4c-57.1/source/common/messagepattern.o build/fedora/third_party/icu4c-57.1/source/common/normalizer2.o build/fedora/third_party/icu4c-57.1/source/common/normalizer2impl.o build/fedora/third_party/icu4c-57.1/source/common/normlzr.o build/fedora/third_party/icu4c-57.1/source/common/parsepos.o build/fedora/third_party/icu4c-57.1/source/common/patternprops.o build/fedora/third_party/icu4c-57.1/source/common/pluralmap.o build/fedora/third_party/icu4c-57.1/source/common/propname.o build/fedora/third_party/icu4c-57.1/source/common/propsvec.o build/fedora/third_party/icu4c-57.1/source/common/punycode.o build/fedora/third_party/icu4c-57.1/source/common/putil.o build/fedora/third_party/icu4c-57.1/source/common/rbbi.o build/fedora/third_party/icu4c-57.1/source/common/rbbidata.o build/fedora/third_party/icu4c-57.1/source/common/rbbinode.o build/fedora/third_party/icu4c-57.1/source/common/rbbirb.o build/fedora/third_party/icu4c-57.1/source/common/rbbiscan.o build/fedora/third_party/icu4c-57.1/source/common/rbbisetb.o build/fedora/third_party/icu4c-57.1/source/common/rbbistbl.o build/fedora/third_party/icu4c-57.1/source/common/rbbitblb.o build/fedora/third_party/icu4c-57.1/source/common/resbund.o build/fedora/third_party/icu4c-57.1/source/common/resbund_cnv.o build/fedora/third_party/icu4c-57.1/source/common/resource.o build/fedora/third_party/icu4c-57.1/source/common/ruleiter.o build/fedora/third_party/icu4c-57.1/source/common/schriter.o build/fedora/third_party/icu4c-57.1/source/common/serv.o build/fedora/third_party/icu4c-57.1/source/common/servlk.o build/fedora/third_party/icu4c-57.1/source/common/servlkf.o build/fedora/third_party/icu4c-57.1/source/common/servls.o build/fedora/third_party/icu4c-57.1/source/common/servnotf.o build/fedora/third_party/icu4c-57.1/source/common/servrbf.o build/fedora/third_party/icu4c-57.1/source/common/servslkf.o build/fedora/third_party/icu4c-57.1/source/common/sharedobject.o build/fedora/third_party/icu4c-57.1/source/common/simpleformatter.o build/fedora/third_party/icu4c-57.1/source/common/stringpiece.o build/fedora/third_party/icu4c-57.1/source/common/stringtriebuilder.o build/fedora/third_party/icu4c-57.1/source/common/uarrsort.o build/fedora/third_party/icu4c-57.1/source/common/ubidi.o build/fedora/third_party/icu4c-57.1/source/common/ubidi_props.o build/fedora/third_party/icu4c-57.1/source/common/ubidiln.o build/fedora/third_party/icu4c-57.1/source/common/ubidiwrt.o build/fedora/third_party/icu4c-57.1/source/common/ubrk.o build/fedora/third_party/icu4c-57.1/source/common/ucase.o build/fedora/third_party/icu4c-57.1/source/common/ucasemap.o build/fedora/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.o build/fedora/third_party/icu4c-57.1/source/common/ucat.o build/fedora/third_party/icu4c-57.1/source/common/uchar.o build/fedora/third_party/icu4c-57.1/source/common/ucharstrie.o build/fedora/third_party/icu4c-57.1/source/common/ucharstriebuilder.o build/fedora/third_party/icu4c-57.1/source/common/ucharstrieiterator.o build/fedora/third_party/icu4c-57.1/source/common/uchriter.o build/fedora/third_party/icu4c-57.1/source/common/ucln_cmn.o build/fedora/third_party/icu4c-57.1/source/common/ucmndata.o build/fedora/third_party/icu4c-57.1/source/common/ucnv.o build/fedora/third_party/icu4c-57.1/source/common/ucnv2022.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_bld.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_cb.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_cnv.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_ct.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_err.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_ext.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_io.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_lmb.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_set.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u16.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u32.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u7.o build/fedora/third_party/icu4c-57.1/source/common/ucnv_u8.o build/fedora/third_party/icu4c-57.1/source/common/ucnvbocu.o build/fedora/third_party/icu4c-57.1/source/common/ucnvdisp.o build/fedora/third_party/icu4c-57.1/source/common/ucnvhz.o build/fedora/third_party/icu4c-57.1/source/common/ucnvisci.o build/fedora/third_party/icu4c-57.1/source/common/ucnvlat1.o build/fedora/third_party/icu4c-57.1/source/common/ucnvmbcs.o build/fedora/third_party/icu4c-57.1/source/common/ucnvscsu.o build/fedora/third_party/icu4c-57.1/source/common/ucnvsel.o build/fedora/third_party/icu4c-57.1/source/common/ucol_swp.o build/fedora/third_party/icu4c-57.1/source/common/ucurr.o build/fedora/third_party/icu4c-57.1/source/common/udata.o build/fedora/third_party/icu4c-57.1/source/common/udatamem.o build/fedora/third_party/icu4c-57.1/source/common/udataswp.o build/fedora/third_party/icu4c-57.1/source/common/uenum.o build/fedora/third_party/icu4c-57.1/source/common/uhash.o build/fedora/third_party/icu4c-57.1/source/common/uhash_us.o build/fedora/third_party/icu4c-57.1/source/common/uidna.o build/fedora/third_party/icu4c-57.1/source/common/uinit.o build/fedora/third_party/icu4c-57.1/source/common/uinvchar.o build/fedora/third_party/icu4c-57.1/source/common/uiter.o build/fedora/third_party/icu4c-57.1/source/common/ulist.o build/fedora/third_party/icu4c-57.1/source/common/ulistformatter.o build/fedora/third_party/icu4c-57.1/source/common/uloc.o build/fedora/third_party/icu4c-57.1/source/common/uloc_keytype.o build/fedora/third_party/icu4c-57.1/source/common/uloc_tag.o build/fedora/third_party/icu4c-57.1/source/common/umapfile.o build/fedora/third_party/icu4c-57.1/source/common/umath.o build/fedora/third_party/icu4c-57.1/source/common/umutex.o build/fedora/third_party/icu4c-57.1/source/common/unames.o build/fedora/third_party/icu4c-57.1/source/common/unifiedcache.o build/fedora/third_party/icu4c-57.1/source/common/unifilt.o build/fedora/third_party/icu4c-57.1/source/common/unifunct.o build/fedora/third_party/icu4c-57.1/source/common/uniset.o build/fedora/third_party/icu4c-57.1/source/common/uniset_closure.o build/fedora/third_party/icu4c-57.1/source/common/uniset_props.o build/fedora/third_party/icu4c-57.1/source/common/unisetspan.o build/fedora/third_party/icu4c-57.1/source/common/unistr.o build/fedora/third_party/icu4c-57.1/source/common/unistr_case.o build/fedora/third_party/icu4c-57.1/source/common/unistr_case_locale.o build/fedora/third_party/icu4c-57.1/source/common/unistr_cnv.o build/fedora/third_party/icu4c-57.1/source/common/unistr_props.o build/fedora/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.o build/fedora/third_party/icu4c-57.1/source/common/unorm.o build/fedora/third_party/icu4c-57.1/source/common/unormcmp.o build/fedora/third_party/icu4c-57.1/source/common/uobject.o build/fedora/third_party/icu4c-57.1/source/common/uprops.o build/fedora/third_party/icu4c-57.1/source/common/ures_cnv.o build/fedora/third_party/icu4c-57.1/source/common/uresbund.o build/fedora/third_party/icu4c-57.1/source/common/uresdata.o build/fedora/third_party/icu4c-57.1/source/common/usc_impl.o build/fedora/third_party/icu4c-57.1/source/common/uscript.o build/fedora/third_party/icu4c-57.1/source/common/uscript_props.o build/fedora/third_party/icu4c-57.1/source/common/uset.o build/fedora/third_party/icu4c-57.1/source/common/uset_props.o build/fedora/third_party/icu4c-57.1/source/common/usetiter.o build/fedora/third_party/icu4c-57.1/source/common/ushape.o build/fedora/third_party/icu4c-57.1/source/common/usprep.o build/fedora/third_party/icu4c-57.1/source/common/ustack.o build/fedora/third_party/icu4c-57.1/source/common/ustr_cnv.o build/fedora/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.o build/fedora/third_party/icu4c-57.1/source/common/ustr_wcs.o build/fedora/third_party/icu4c-57.1/source/common/ustrcase.o build/fedora/third_party/icu4c-57.1/source/common/ustrcase_locale.o build/fedora/third_party/icu4c-57.1/source/common/ustrenum.o build/fedora/third_party/icu4c-57.1/source/common/ustrfmt.o build/fedora/third_party/icu4c-57.1/source/common/ustring.o build/fedora/third_party/icu4c-57.1/source/common/ustrtrns.o build/fedora/third_party/icu4c-57.1/source/common/utext.o build/fedora/third_party/icu4c-57.1/source/common/utf_impl.o build/fedora/third_party/icu4c-57.1/source/common/util.o build/fedora/third_party/icu4c-57.1/source/common/util_props.o build/fedora/third_party/icu4c-57.1/source/common/utrace.o build/fedora/third_party/icu4c-57.1/source/common/utrie.o build/fedora/third_party/icu4c-57.1/source/common/utrie2.o build/fedora/third_party/icu4c-57.1/source/common/utrie2_builder.o build/fedora/third_party/icu4c-57.1/source/common/uts46.o build/fedora/third_party/icu4c-57.1/source/common/utypes.o build/fedora/third_party/icu4c-57.1/source/common/uvector.o build/fedora/third_party/icu4c-57.1/source/common/uvectr32.o build/fedora/third_party/icu4c-57.1/source/common/uvectr64.o build/fedora/third_party/icu4c-57.1/source/common/wintz.o ar @/tmp/tmp1eb34a1n.lnk Skipping ranlib for thin archive build/fedora/third_party/icu4c-57.1/source/libicu_common.a ar rcsTD build/fedora/mongo/util/concurrency/libthread_pool.a build/fedora/mongo/util/concurrency/thread_pool.o Skipping ranlib for thin archive build/fedora/mongo/util/concurrency/libthread_pool.a ar rcsTD build/fedora/mongo/db/libtime_proof_service.a build/fedora/mongo/db/time_proof_service.o Skipping ranlib for thin archive build/fedora/mongo/db/libtime_proof_service.a g++ -o build/fedora/mongo/db/update/update_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/update/update_node.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/update/update_array_node.h:35, from src/mongo/db/update/update_node.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/update/update_array_node.h:35, from src/mongo/db/update/update_node.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/update/update_node.h:33, from src/mongo/db/update/update_node.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/s/s_sharding_server_status.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/s/s_sharding_server_status.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/s/s_sharding_server_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/s/s_sharding_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/s/s_sharding_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/s/s_sharding_server_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/update/libupdate.a build/fedora/mongo/db/update/addtoset_node.o build/fedora/mongo/db/update/arithmetic_node.o build/fedora/mongo/db/update/array_culling_node.o build/fedora/mongo/db/update/bit_node.o build/fedora/mongo/db/update/compare_node.o build/fedora/mongo/db/update/current_date_node.o build/fedora/mongo/db/update/modifier_node.o build/fedora/mongo/db/update/modifier_table.o build/fedora/mongo/db/update/object_replace_node.o build/fedora/mongo/db/update/pop_node.o build/fedora/mongo/db/update/pull_node.o build/fedora/mongo/db/update/pullall_node.o build/fedora/mongo/db/update/push_node.o build/fedora/mongo/db/update/rename_node.o build/fedora/mongo/db/update/set_node.o build/fedora/mongo/db/update/unset_node.o build/fedora/mongo/db/update/update_array_node.o build/fedora/mongo/db/update/update_internal_node.o build/fedora/mongo/db/update/update_leaf_node.o build/fedora/mongo/db/update/update_node.o build/fedora/mongo/db/update/update_object_node.o Skipping ranlib for thin archive build/fedora/mongo/db/update/libupdate.a ar rcsTD build/fedora/mongo/db/libkeys_collection_client_sharded.a build/fedora/mongo/db/keys_collection_client_sharded.o Skipping ranlib for thin archive build/fedora/mongo/db/libkeys_collection_client_sharded.a g++ -o build/fedora/mongo/base/global_initializer_registerer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/global_initializer_registerer.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/base/make_string_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/make_string_vector.cpp g++ -o build/fedora/mongo/logger/log_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/log_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/s/s_sharding_server_status.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/util/background_thread_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/background_thread_clock_source.cpp g++ -o build/fedora/mongo/util/duration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/util/duration.cpp ar rcsTD build/fedora/mongo/util/libclock_sources.a build/fedora/mongo/util/background_thread_clock_source.o build/fedora/mongo/util/clock_source.o build/fedora/mongo/util/fast_clock_source_factory.o Skipping ranlib for thin archive build/fedora/mongo/util/libclock_sources.a ar rcsTD build/fedora/mongo/util/options_parser/liboptions_parser.a build/fedora/mongo/util/options_parser/environment.o build/fedora/mongo/util/options_parser/value.o build/fedora/mongo/util/options_parser/constraints.o build/fedora/mongo/util/options_parser/option_section.o build/fedora/mongo/util/options_parser/option_description.o build/fedora/mongo/util/options_parser/options_parser.o build/fedora/mongo/util/options_parser/startup_option_init.o build/fedora/mongo/util/options_parser/startup_options.o Skipping ranlib for thin archive build/fedora/mongo/util/options_parser/liboptions_parser.a ar rcsTD build/fedora/mongo/db/libaudit.a build/fedora/mongo/db/audit.o Skipping ranlib for thin archive build/fedora/mongo/db/libaudit.a ar rcsTD build/fedora/mongo/db/auth/libinternal_user_auth.a build/fedora/mongo/db/auth/internal_user_auth.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libinternal_user_auth.a ar rcsTD build/fedora/mongo/db/libmongohasher.a build/fedora/mongo/db/hasher.o Skipping ranlib for thin archive build/fedora/mongo/db/libmongohasher.a g++ -o build/fedora/mongo/base/data_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/base/data_type.cpp ar rcsTD build/fedora/mongo/rpc/libcommand_request.a build/fedora/mongo/rpc/command_request.o build/fedora/mongo/rpc/command_request_builder.o Skipping ranlib for thin archive build/fedora/mongo/rpc/libcommand_request.a g++ -o build/fedora/mongo/db/auth/action_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/auth/action_type.cpp ar rcsTD build/fedora/mongo/util/net/libssl_manager.a build/fedora/mongo/util/net/ssl_dummy.o Skipping ranlib for thin archive build/fedora/mongo/util/net/libssl_manager.a g++ -o build/fedora/mongo/logger/log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/logger/log_component_settings.cpp ar rcsTD build/fedora/mongo/db/query/libindex_bounds.a build/fedora/mongo/db/query/expression_index.o build/fedora/mongo/db/query/expression_index_knobs.o build/fedora/mongo/db/query/index_bounds.o build/fedora/mongo/db/query/index_bounds_builder.o build/fedora/mongo/db/query/interval.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libindex_bounds.a ar rcsTD build/fedora/mongo/libbase.a build/fedora/mongo/base/data_range.o build/fedora/mongo/base/data_range_cursor.o build/fedora/mongo/base/data_type.o build/fedora/mongo/base/data_type_string_data.o build/fedora/mongo/base/data_type_terminated.o build/fedora/mongo/base/error_codes.o build/fedora/mongo/base/error_extra_info.o build/fedora/mongo/base/global_initializer.o build/fedora/mongo/base/global_initializer_registerer.o build/fedora/mongo/base/init.o build/fedora/mongo/base/initializer.o build/fedora/mongo/base/initializer_dependency_graph.o build/fedora/mongo/base/make_string_vector.o build/fedora/mongo/base/parse_number.o build/fedora/mongo/base/shim.o build/fedora/mongo/base/simple_string_data_comparator.o build/fedora/mongo/base/status.o build/fedora/mongo/base/string_data.o build/fedora/mongo/base/validate_locale.o build/fedora/mongo/bson/bson_comparator_interface_base.o build/fedora/mongo/bson/bson_depth.o build/fedora/mongo/bson/bson_validate.o build/fedora/mongo/bson/bsonelement.o build/fedora/mongo/bson/bsonmisc.o build/fedora/mongo/bson/bsonobj.o build/fedora/mongo/bson/bsonobjbuilder.o build/fedora/mongo/bson/bsontypes.o build/fedora/mongo/bson/json.o build/fedora/mongo/bson/oid.o build/fedora/mongo/bson/simple_bsonelement_comparator.o build/fedora/mongo/bson/simple_bsonobj_comparator.o build/fedora/mongo/bson/timestamp.o build/fedora/mongo/logger/component_message_log_domain.o build/fedora/mongo/logger/console.o build/fedora/mongo/logger/log_component.o build/fedora/mongo/logger/log_component_settings.o build/fedora/mongo/logger/log_manager.o build/fedora/mongo/logger/log_severity.o build/fedora/mongo/logger/logger.o build/fedora/mongo/logger/logstream_builder.o build/fedora/mongo/logger/message_event_utf8_encoder.o build/fedora/mongo/logger/message_log_domain.o build/fedora/mongo/logger/ramlog.o build/fedora/mongo/logger/redaction.o build/fedora/mongo/logger/rotatable_file_manager.o build/fedora/mongo/logger/rotatable_file_writer.o build/fedora/mongo/platform/decimal128.o build/fedora/mongo/platform/posix_fadvise.o build/fedora/mongo/platform/process_id.o build/fedora/mongo/platform/random.o build/fedora/mongo/platform/shared_library.o build/fedora/mongo/platform/shared_library_posix.o build/fedora/mongo/platform/stack_locator.o build/fedora/mongo/platform/stack_locator_linux.o build/fedora/mongo/platform/strcasestr.o build/fedora/mongo/platform/strnlen.o build/fedora/mongo/util/allocator.o build/fedora/mongo/util/assert_util.o build/fedora/mongo/util/base64.o build/fedora/mongo/util/concurrency/idle_thread_block.o build/fedora/mongo/util/concurrency/thread_name.o build/fedora/mongo/util/duration.o build/fedora/mongo/util/errno_util.o build/fedora/mongo/util/exception_filter_win32.o build/fedora/mongo/util/exit.o build/fedora/mongo/util/file.o build/fedora/mongo/util/hex.o build/fedora/mongo/util/itoa.o build/fedora/mongo/util/log.o build/fedora/mongo/util/platform_init.o build/fedora/mongo/util/signal_handlers_synchronous.o build/fedora/mongo/util/stacktrace.o build/fedora/mongo/util/stacktrace_posix.o build/fedora/mongo/util/startup_test.o build/fedora/mongo/util/stringutils.o build/fedora/mongo/util/system_clock_source.o build/fedora/mongo/util/system_tick_source.o build/fedora/mongo/util/text.o build/fedora/mongo/util/time_support.o build/fedora/mongo/util/timer.o build/fedora/mongo/util/uuid.o build/fedora/mongo/util/version.o Skipping ranlib for thin archive build/fedora/mongo/libbase.a ar rcsTD build/fedora/mongo/db/query/libexplain_options.a build/fedora/mongo/db/query/explain_options.o Skipping ranlib for thin archive build/fedora/mongo/db/query/libexplain_options.a ar rcsTD build/fedora/mongo/client/libfetcher.a build/fedora/mongo/client/fetcher.o Skipping ranlib for thin archive build/fedora/mongo/client/libfetcher.a ar rcsTD build/fedora/third_party/libshim_pcrecpp.a build/fedora/third_party/shim_pcrecpp.o Skipping ranlib for thin archive build/fedora/third_party/libshim_pcrecpp.a g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp ar rcsTD build/fedora/mongo/db/auth/libauthprivilege.a build/fedora/mongo/db/auth/action_set.o build/fedora/mongo/db/auth/action_type.o build/fedora/mongo/db/auth/impersonation_session.o build/fedora/mongo/db/auth/privilege.o build/fedora/mongo/db/auth/privilege_parser.o build/fedora/mongo/db/auth/resource_pattern.o build/fedora/mongo/db/auth/user_management_commands_parser.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthprivilege.a Using tempfile /tmp/tmpxa_zvml3.lnk for command line: g++ -o build/fedora/mongo/mongos -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,-z,relro -pie build/fedora/mongo/s/cluster_cursor_stats.o build/fedora/mongo/s/mongos_options.o build/fedora/mongo/s/mongos_options_init.o build/fedora/mongo/s/s_sharding_server_status.o build/fedora/mongo/s/server.o build/fedora/mongo/s/service_entry_point_mongos.o build/fedora/mongo/s/sharding_uptime_reporter.o build/fedora/mongo/s/version_mongos.o -Wl,--start-group -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libversion_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libtcmalloc_set_parameter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libservice_entry_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_initialization.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libreplset_dist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libdist_lock_catalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libdist_lock_catalog_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_cache_factory_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection_rs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdbdirectclient.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libremote_command_targeter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_liaison_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_egress_metadata_hook_for_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcommitted_optime_metadata_hook.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/commands/libcluster_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/write_ops/libcluster_write_op_conversion.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/write_ops/libcluster_write_op.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libstore_possible_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_cursor_cleanup_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcursor_server_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_client_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/librouter_exec_stage.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/commands/libcluster_commands_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/datetime/libinit_timezone_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcurop_failpoint_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/commands/libshared_cluster_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libasync_multicaster.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/views/libviews.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libaggregation.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libpipeline.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libasync_results_merger.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libasync_requests_sender.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libsharding_catalog_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/client/libsharding_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libfetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libtop.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libparsed_aggregation_projection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libgranularity_rounder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdocument_sources_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libaccumulator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libkey_generator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libindex_descriptor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libindex_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/libbase_fts.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_stemmer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/unicode/libunicode.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/liblinenoise_utf8.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libwrite_commands_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libprofile_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libkill_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libcurrent_op_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libencryption_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libstartup_warnings_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libmongodandmongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsecurity_key.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcurop.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprogress_meter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/concurrency/liblock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ftdc/libftdc_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ftdc/libftdc_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprocparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ftdc/libftdc.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthmongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libdist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthservercommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libservers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libntservice.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsignal_handlers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libscripting_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/shell/libmongojs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_legacy_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcluster_last_error_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblasterror.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcoreshard.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libthread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libgrid.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_cursor_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libgeneric_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_routing_table.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libticketholder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libkey_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/client/libshard_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libremote_command_retry_scheduler.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time_metadata_hook.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libtask_executor_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libisself.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclientdriver_network.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libthread_pool_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_thread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_tl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libservice_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/base/libsystem_error.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libasync_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libtask_executor_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libconnection_pool_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libegress_tag_closer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libconnection_pool_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblog_process_details.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplica_set_messages.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_process.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libstorage_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librollback_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_zlib.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_snappy.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/cmdline_utils/libcmdline_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libfeature_compatibility_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libcore.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/logger/libparse_log_component_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_cache_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/write_ops/libbatch_write_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_liaison.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_id_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkill_sessions.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclientdriver_minimal.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclient_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libauthentication.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsecurity_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsaslauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth_impl_internal.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_asio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/asio-master/libasio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libbackground_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libcounters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwire_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcommon_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libconnection_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libdns_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libobject_check.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdbmessage.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libaudit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libtest_commands_enabled.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libinternal_user_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/liblite_parsed_document_source.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdocument_validation.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser_document_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/librole_graph_update.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/update/libupdate_driver.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/update/libupdate.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/update/libupdate_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libupdate_index_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_planner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libindex_bounds.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/matcher/libexpressions.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_knobs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libexpression.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsummation.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libexpression_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_factory_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libaggregation_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libexplain_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libcommand_request_response.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libread_concern_args.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libuuid_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase_holder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcollection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libnamespace_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdependencies.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdocument_value.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libintrusive_counter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/datetime/libdate_time_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_timelib.a -Wl,--no-whole-archive build/fedora/third_party/timelib-2018.01alpha1/libtimelib.a -Wl,--whole-archive build/fedora/mongo/db/pipeline/libfield_path.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/matcher/libpath.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/libfts_query_noop.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libexpression_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libmongohasher.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/geo/libgeoparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/geo/libgeometry.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/libs2.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/util/math/libmath.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/util/coding/libcoding.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/strings/libstrings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/base/libbase_s2.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/bson/libdotted_path_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsasl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_yaml.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/librole_graph.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthorization_manager_global.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libsasl_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libmd5.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libicu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libicu_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_i18n.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libremote_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libmetadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libclient_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libis_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboptime.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time_validator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsigned_logical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_client_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libsharding_catalog_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_clock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libglobal_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_document.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libtime_proof_service.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libindex_names.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libaddress_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthentication_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/mutable/libmutable_bson.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsafe_num.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libaudit_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser_name.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth_rolename.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libread_preference.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libnetwork.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libwinutil.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libfail_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libclock_sources.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libspin_lock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libwrite_unit_of_work.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/idl/libidl_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommand_generic_argument.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha_block_openssl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha1_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha256_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsecure_compare_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/util/libbson_extract.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/base/libsecure_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsecure_zero_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprocessinfo.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/libbase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/murmurhash3/libmurmurhash3.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_pcrecpp.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/fedora/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/fedora/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libquick_exit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_allocator.a -Wl,--no-whole-archive build/fedora/mongo/util/libdebugger.a -Wl,--end-group -lstemmer -lz -lsnappy -lyaml-cpp -lpcre -lpcrecpp -lboost_program_options -lboost_filesystem -lboost_system -lboost_iostreams -ltcmalloc -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl g++ @/tmp/tmpxa_zvml3.lnk In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Assembler-x86-shared.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Assembler-x86-shared.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Disassembler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Assembler-x86-shared.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RegisterSets.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Architecture-x86-shared.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ 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 g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:36, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:36, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:36, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpEngine.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpAST.h:42, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpMacroAssembler.h:34, from src/third_party/mozjs-45/extract/js/src/irregexp/RegExpInterpreter.cpp:34, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/object.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/object.cpp g++ -o build/fedora/mongo/scripting/mozjs/numberint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/numberint.cpp g++ -o build/fedora/mongo/scripting/mozjs/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/timestamp.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/StringBuffer.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:15, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:11, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/vm/String.h:14, from src/third_party/mozjs-45/extract/js/src/vm/String-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/String.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry; HashPolicy = js::HashMap, js::TempAllocPolicy>::MapHashPolicy; AllocPolicy = js::TempAllocPolicy]': src/third_party/mozjs-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSObject*; Value = unsigned int; HashPolicy = js::MovableCellHasher; AllocPolicy = js::TempAllocPolicy]' src/third_party/mozjs-45/include/js/GCHashTable.h:133:47: required from 'void js::MutableGCHashMapOperations::clear() [with Outer = JS::Rooted > >; Args = {JSObject*, unsigned int, js::MovableCellHasher, js::TempAllocPolicy, js::DefaultMapGCPolicy}]' src/third_party/mozjs-45/extract/js/src/vm/StructuredClone.cpp:1403:17: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::HashMap, js::TempAllocPolicy>::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} with no trivial copy-assignment [-Wclass-memaccess] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::TempAllocPolicy>::MapHashPolicy, js::TempAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame-inl.h:19, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:22, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.h:14, from src/third_party/mozjs-45/extract/js/src/jit/VMFunctions.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424: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-45/extract/js/src/jit/ValueNumbering.cpp:127:15: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable::SetOps, js::jit::JitAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:11, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:331:73: 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-45/extract/js/src/jit/ValueNumbering.cpp:83:21: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.h:10, from src/third_party/mozjs-45/extract/js/src/jit/TypedObjectPrediction.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/PosixNSPR.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/PosixNSPR.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSLink.cpp:45, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsscript.h:17, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:27, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:32, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::AsmJSModule::StaticLinkData::Pod]': src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:681:44: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::AsmJSModule::StaticLinkData::Pod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:683:16: note: 'struct js::AsmJSModule::StaticLinkData::Pod' declared here 683 | struct Pod { | ^~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:22, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:22, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler-inl.h:10, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:22, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:0, inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from '__ct ' at src/mongo/db/pipeline/variables.h:144:7, inlined from 'createFromBson' at src/mongo/db/pipeline/document_source_bucket_auto.cpp:430:40: src/mongo/util/unordered_fast_key_table.h:164: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | src/mongo/util/unordered_fast_key_table.h: In function 'createFromBson': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ g++ -o build/fedora/mongo/scripting/mozjs/proxyscope.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/proxyscope.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:31, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:0, inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from '__ct ' at src/mongo/db/pipeline/variables.h:144:7, inlined from 'copyWith' at src/mongo/db/pipeline/variables.h:183:36, inlined from 'copyVariablesToExpCtx' at src/mongo/db/pipeline/document_source_lookup.cpp:592:47: src/mongo/util/unordered_fast_key_table.h:164: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | src/mongo/util/unordered_fast_key_table.h: In function 'copyVariablesToExpCtx': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:0, inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from '__ct ' at src/mongo/db/pipeline/variables.h:144:7, inlined from 'createFromBson' at src/mongo/db/pipeline/document_source_redact.cpp:175:39: src/mongo/util/unordered_fast_key_table.h:164: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | src/mongo/util/unordered_fast_key_table.h: In function 'createFromBson': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ /usr/bin/python3 site_scons/site_tools/jstoh.py build/fedora/mongo/scripting/mozjs/mongohelpers_js.cpp src/mongo/scripting/mozjs/mongohelpers.js g++ -o build/fedora/mongo/scripting/mozjs/mongohelpers_js.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc build/fedora/mongo/scripting/mozjs/mongohelpers_js.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineCompiler-x86.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineCompiler-x86.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/shared/BaselineCompiler-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/BaselineCompiler-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineCompiler-x86.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/jit/FixedList.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86/BaselineIC-x86.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/extract/js/src/mfbt/Unified_cpp_mfbt0.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/mfbt/Unified_cpp_mfbt0.cpp g++ -o build/fedora/mongo/shell/shell_utils_extended.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/shell_utils_extended.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/system/detail/generic_category_message.hpp:15, from /usr/include/boost/system/detail/generic_category.hpp:14, from /usr/include/boost/system/detail/error_condition.hpp:14, from /usr/include/boost/system/detail/error_code.hpp:14, from /usr/include/boost/system/error_code.hpp:13, from /usr/include/boost/filesystem/path_traits.hpp:22, from /usr/include/boost/filesystem/path.hpp:26, from /usr/include/boost/filesystem/operations.hpp:26, from /usr/include/boost/filesystem/convenience.hpp:22, from src/mongo/shell/shell_utils_extended.cpp:34: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/shell/bench.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/bench.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/shell/bench.h:35, from src/mongo/shell/bench.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/shell/bench.h:35, from src/mongo/shell/bench.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/cursor_response.h:36, from src/mongo/shell/bench.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/shell/libbenchrun.a build/fedora/mongo/shell/bench.o Skipping ranlib for thin archive build/fedora/mongo/shell/libbenchrun.a g++ -o build/fedora/third_party/mozjs-45/extract/js/src/jsutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/jsutil.cpp g++ -o build/fedora/mongo/scripting/mozjs/jsthread.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/jsthread.cpp g++ -o build/fedora/mongo/scripting/mozjs/mongo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/mongo.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/scripting/mozjs/objectwrapper.h:34, from src/mongo/scripting/mozjs/wraptype.h:37, from src/mongo/scripting/mozjs/mongo.h:31, from src/mongo/scripting/mozjs/mongo.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/shell/linenoise.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/linenoise.cpp g++ -o build/fedora/mongo/shell/mk_wcwidth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/mk_wcwidth.cpp g++ -o build/fedora/mongo/shell/shell_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/shell_utils.cpp g++ -o build/fedora/mongo/shell/shell_utils_launcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/shell_utils_launcher.cpp /usr/bin/python3 site_scons/site_tools/jstoh.py build/fedora/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/bridge.js g++ -o build/fedora/mongo/shell/mongo-server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc build/fedora/mongo/shell/mongo-server.cpp g++ -o build/fedora/mongo/shell/shell_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/shell_options.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/wire_version.h:32, from src/mongo/rpc/protocol.h:36, from src/mongo/shell/shell_options.h:36, from src/mongo/shell/shell_options.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/libshell_core.a build/fedora/mongo/shell/linenoise.o build/fedora/mongo/shell/mk_wcwidth.o build/fedora/mongo/shell/mongo-server.o build/fedora/mongo/shell/shell_options.o build/fedora/mongo/shell/shell_utils.o build/fedora/mongo/shell/shell_utils_extended.o build/fedora/mongo/shell/shell_utils_launcher.o Skipping ranlib for thin archive build/fedora/mongo/libshell_core.a g++ -o build/fedora/mongo/scripting/mozjs/minkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/minkey.cpp g++ -o build/fedora/mongo/scripting/mozjs/valuereader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/valuereader.cpp g++ -o build/fedora/mongo/scripting/mozjs/countdownlatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/countdownlatch.cpp g++ -o build/fedora/mongo/scripting/mozjs/dbquery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/dbquery.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/scripting/mozjs/end_sessions_gen.h --output build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp src/mongo/scripting/mozjs/end_sessions.idl g++ -o build/fedora/mongo/scripting/mozjs/end_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.h:16, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.h:16, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/scripting/mozjs/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Ion.cpp:50, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:29: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:20, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:20, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:20, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:20, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:20, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/IonAnalysis.cpp:3066:21: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/MIRGenerator.h:17, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.h:10, from src/third_party/mozjs-45/extract/js/src/jit/EffectiveAddressAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/extract/js/src/jit/IonBuilder.cpp: In member function 'js::jit::IonBuilder::computeHeapType(js::TemporaryTypeSet const*, jsid)': cc1plus: warning: function may return address of local variable [-Wreturn-local-addr] In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.cpp:47: src/third_party/mozjs-45/extract/js/src/jit/IonBuilder.cpp:9259:22: note: declared here 9259 | TemporaryTypeSet empty; | ^~~~~ In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:185:23, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:131: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:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:129: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, | g++ -o build/fedora/mongo/scripting/mozjs/dbpointer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/dbpointer.cpp g++ -o build/fedora/mongo/scripting/mozjs/bindata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/bindata.cpp g++ -o build/fedora/third_party/mozjs-45/extract/js/src/frontend/Parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:43: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/FullParseHandler.h:13, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseMaps-inl.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseMaps-inl.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseMaps-inl.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144:54: required from 'static js::detail::HashTable::Entry* js::detail::HashTable::createTable(AllocPolicy&, uint32_t, js::detail::HashTable::FailureBehavior) [with T = JSAtom* const; HashPolicy = js::HashSet, js::LifoAllocPolicy >::SetOps; AllocPolicy = js::LifoAllocPolicy; js::detail::HashTable::Entry = js::detail::HashTableEntry; uint32_t = unsigned int]' src/third_party/mozjs-45/include/js/HashTable.h:1212:28: required from 'bool js::detail::HashTable::init(uint32_t) [with T = JSAtom* const; HashPolicy = js::HashSet, js::LifoAllocPolicy >::SetOps; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-45/include/js/HashTable.h:331:73: required from 'bool js::HashSet::init(uint32_t) [with T = JSAtom*; HashPolicy = js::DefaultHasher; AllocPolicy = js::LifoAllocPolicy; uint32_t = unsigned int]' src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:2354:59: required from here src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:559:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry' with no trivial copy-assignment [-Wclass-memaccess] 559 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/Parser-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:20: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::DefinitionList; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:63:22: required from 'bool js::InlineMap::switchToMap() [with K = JSAtom*; V = js::frontend::DefinitionList; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:84:14: required from 'bool js::InlineMap::switchAndAdd(const K&, const V&) [with K = JSAtom*; V = js::frontend::DefinitionList; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:265:24: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, const K&, const V&) [with K = JSAtom*; V = js::frontend::DefinitionList; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/frontend/ParseMaps.h:457:28: required from 'bool js::frontend::AtomDecls::addUnique(JSAtom*, js::frontend::AtomDecls::DefinitionNode) [with ParseHandler = js::frontend::FullParseHandler; js::frontend::AtomDecls::DefinitionNode = js::frontend::Definition*]' src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:283:30: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::DefinitionSingle; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:63:22: required from 'bool js::InlineMap::switchToMap() [with K = JSAtom*; V = js::frontend::DefinitionSingle; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:84:14: required from 'bool js::InlineMap::switchAndAdd(const K&, const V&) [with K = JSAtom*; V = js::frontend::DefinitionSingle; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:265:24: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, const K&, const V&) [with K = JSAtom*; V = js::frontend::DefinitionSingle; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:1727:26: required from 'typename ParseHandler::DefinitionNode js::frontend::Parser::getOrCreateLexicalDependency(js::frontend::ParseContext*, JSAtom*) [with ParseHandler = js::frontend::FullParseHandler; typename ParseHandler::DefinitionNode = js::frontend::Definition*]' src/third_party/mozjs-45/extract/js/src/frontend/Parser.cpp:1847:56: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp: In member function 'bool js::jit::BacktrackingAllocator::init()': src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:383: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] 383 | memset(&vregs[0], 0, sizeof(VirtualRegister) * numVregs); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:451:7: note: 'class js::jit::VirtualRegister' declared here 451 | class VirtualRegister | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:23, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.cpp:20, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/SplayTree.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/RegisterAllocator.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.h:14, from src/third_party/mozjs-45/extract/js/src/jit/BacktrackingAllocator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/internedstring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/internedstring.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:46, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:16, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsweakcache.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitCompartment.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonCaches.h:19, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/CodeGenerator.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.cpp:11: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:13, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:20, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:211:42: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/Tracer.cpp:20, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:207:8: note: 'struct js::gc::TenureCountCache' declared here 207 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:27, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:27, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:27, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:10, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:23, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:47: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/CharacterEncoding.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:47: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:47: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Debugger.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:47: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/vm/CallNonGenericMethod.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = JS::Zone*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/Debugger.cpp:3497:24: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/extract/mfbt/Compression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/mfbt/Compression.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Lowering.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:38: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:13, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186: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-45/extract/js/src/jit/LoopUnroller.cpp:340:34: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/icu4c-57.1/source/i18n/decNumber.c: In function 'uprv_decNumberLog10': In file included from src/third_party/mozjs-45/extract/js/src/jit/CompileInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:11, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/jit/CompactBuffer.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitcodeMap.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ 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]; | g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/ScalarReplacement.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.cpp:64, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:20: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:20: src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.cpp: In function 'bool js::atomics_futexWait(JSContext*, unsigned int, JS::Value*)': src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.cpp:780:24: warning: unnecessary parentheses in declaration of 'addr' [-Wparentheses] 780 | SharedMem(addr) = view->viewDataShared().cast() + offset; | ^~~~~~ src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.cpp:780:24: note: remove parentheses 780 | SharedMem(addr) = view->viewDataShared().cast() + offset; | ^~~~~~ | - - In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:13, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::AsmJSModule::StaticLinkData::Pod]': src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:681:44: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::AsmJSModule::StaticLinkData::Pod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/asmjs/WasmStubs.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:11: src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:683:16: note: 'struct js::AsmJSModule::StaticLinkData::Pod' declared here 683 | struct Pod { | ^~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/x86/MacroAssembler-x86.h:12, from src/third_party/mozjs-45/extract/js/src/jit/MacroAssembler.h:16, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/IonTypes.h:12, from src/third_party/mozjs-45/extract/js/src/asmjs/Wasm.h:25, from src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSFrameIterator.h:24, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.h:22, from src/third_party/mozjs-45/extract/js/src/asmjs/WasmIonCompile.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp:17, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:29: In member function 'js::JSONParserBase::JSONParserBase(js::JSONParserBase&&)', inlined from 'js::JSONParser::JSONParser(js::JSONParser&&)' at src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:221:22, inlined from 'js::DispatchWrapper >::DispatchWrapper >(js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:635:9, inlined from 'JS::Rooted >::Rooted >(JSContext* const&, js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:713:9, inlined from 'ParseEvalStringAsJSON(JSContext*, mozilla::Range, JS::MutableHandle)EvalJSONResult' at src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp:186:31: src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:124:9: warning: 'MEM[(struct JSONParserBase &)&D.417952].v' is used uninitialized [-Wuninitialized] 124 | : v(other.v), | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:29: src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp: In function 'ParseEvalStringAsJSON(JSContext*, mozilla::Range, JS::MutableHandle)EvalJSONResult': src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp:186:42: note: '' declared here 186 | Rooted> parser(cx, JSONParser(cx, jsonChars, JSONParserBase::NoError)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp:17, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:29: In member function 'js::JSONParserBase::JSONParserBase(js::JSONParserBase&&)', inlined from 'js::JSONParser::JSONParser(js::JSONParser&&)' at src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:221:22, inlined from 'js::DispatchWrapper >::DispatchWrapper >(js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:635:9, inlined from 'JS::Rooted >::Rooted >(JSContext* const&, js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:713:9, inlined from 'ParseEvalStringAsJSON(JSContext*, mozilla::Range, JS::MutableHandle)EvalJSONResult' at src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp:186:31: src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:124:9: warning: 'MEM[(struct JSONParserBase &)&D.417575].v' is used uninitialized [-Wuninitialized] 124 | : v(other.v), | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.cpp:29: src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp: In function 'ParseEvalStringAsJSON(JSContext*, mozilla::Range, JS::MutableHandle)EvalJSONResult': src/third_party/mozjs-45/extract/js/src/builtin/Eval.cpp:186:42: note: '' declared here 186 | Rooted> parser(cx, JSONParser(cx, jsonChars, JSONParserBase::NoError)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/shell/shell_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/shell_options_init.cpp g++ -o build/fedora/mongo/scripting/mozjs/global.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/global.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp In file included from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ProxyObject.h:11, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:8, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:10, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:10, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:10, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:10, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:10, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/BaseProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/implscope.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/implscope.cpp In file included from /usr/include/string.h:519, from src/third_party/mozjs-45/include/js/Utility.h:19, from src/third_party/mozjs-45/include/jsalloc.h:18, from src/third_party/mozjs-45/include/jsapi.h:24, from src/mongo/scripting/mozjs/implscope.h:31, from src/mongo/scripting/mozjs/implscope.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongoutils::str::stream::operator<< (char const* const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::mozjs::MozJSImplScope::localConnectForDbEval(mongo::OperationContext*, char const*)::{lambda()#1}::operator()() const' at src/mongo/scripting/mozjs/implscope.cpp:840:79, inlined from 'mongo::mozjs::MozJSImplScope::_runSafely(mongo::mozjs::MozJSImplScope::localConnectForDbEval(mongo::OperationContext*, char const*)::{lambda()#1}&&)decltype ({parm#1}())' at src/mongo/scripting/mozjs/implscope.cpp:519:29, inlined from 'mongo::mozjs::MozJSImplScope::localConnectForDbEval(mongo::OperationContext*, char const*)' at src/mongo/scripting/mozjs/implscope.cpp:812:15: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 487] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/numberlong.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/numberlong.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.cpp:39, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::AsmJSModule::StaticLinkData::Pod]': src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:681:44: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::AsmJSModule::StaticLinkData::Pod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:29: src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:683:16: note: 'struct js::AsmJSModule::StaticLinkData::Pod' declared here 683 | struct Pod { | ^~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.h:12, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrameInfo.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/session.cpp g++ -o build/fedora/mongo/util/password.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/password.cpp ar rcsTD build/fedora/mongo/util/libpassword.a build/fedora/mongo/util/password.o Skipping ranlib for thin archive build/fedora/mongo/util/libpassword.a g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/StringBuffer.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/StringBuffer.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:12, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:15, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry, js::RelocatablePtr >; HashPolicy = js::HashMap, js::RelocatablePtr, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy; AllocPolicy = js::RuntimeAllocPolicy]': src/third_party/mozjs-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = js::RelocatablePtr; Value = js::RelocatablePtr; HashPolicy = js::MovableCellHasher >; AllocPolicy = js::RuntimeAllocPolicy]' src/third_party/mozjs-45/extract/js/src/builtin/WeakMapObject.cpp:62:19: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::RelocatablePtr >, js::HashMap, js::RelocatablePtr, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::RelocatablePtr > >'} with no trivial copy-assignment [-Wclass-memaccess] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::RelocatablePtr >, js::HashMap, js::RelocatablePtr, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::RelocatablePtr > >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::AsmJSModule::StaticLinkData::Pod]': src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:681:44: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::AsmJSModule::StaticLinkData::Pod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Stack.cpp:14, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:38: src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:683:16: note: 'struct js::AsmJSModule::StaticLinkData::Pod' declared here 683 | struct Pod { | ^~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry >; HashPolicy = js::HashMap, js::MissingScopeKey, js::RuntimeAllocPolicy>::MapHashPolicy; AllocPolicy = js::RuntimeAllocPolicy]': src/third_party/mozjs-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = js::MissingScopeKey; Value = js::ReadBarriered; HashPolicy = js::MissingScopeKey; AllocPolicy = js::RuntimeAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:2693:36: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable >, js::HashMap, js::MissingScopeKey, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} with no trivial copy-assignment [-Wclass-memaccess] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable >, js::HashMap, js::MissingScopeKey, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry, js::LiveScopeVal>; HashPolicy = js::HashMap, js::LiveScopeVal, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy; AllocPolicy = js::RuntimeAllocPolicy]': src/third_party/mozjs-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = js::ReadBarriered; Value = js::LiveScopeVal; HashPolicy = js::MovableCellHasher >; AllocPolicy = js::RuntimeAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:2694:33: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::LiveScopeVal>, js::HashMap, js::LiveScopeVal, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::LiveScopeVal> >'} with no trivial copy-assignment [-Wclass-memaccess] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::LiveScopeVal>, js::HashMap, js::LiveScopeVal, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::LiveScopeVal> >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ Install file: "build/fedora/mongo/mongos" as "mongos" g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:32, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsgc.h:24, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:211:42: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/Marking.cpp:19, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:207:8: note: 'struct js::gc::TenureCountCache' declared here 207 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:30, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:30, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:30, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodCopy(T*, const T*, size_t) [with T = js::HeapSlot; size_t = unsigned int]': src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:2241:12: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:110:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 110 | memcpy(aDst, aSrc, aNElem * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Marking.h:14, from src/third_party/mozjs-45/extract/js/src/gc/Marking.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = void*; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/gc/Nursery.cpp:642:19: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::gc::Cell* const; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::gc::Cell*; HashPolicy = js::PointerHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/gc/Nursery.cpp:683:24: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/cursor.cpp g++ -o build/fedora/mongo/scripting/mozjs/status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/status.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:23, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:31, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:11, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:31, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:31, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineFrame.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Stack-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/Debugger-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:31, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:211:42: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/HelperThreads.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:47: src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:207:8: note: 'struct js::gc::TenureCountCache' declared here 207 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.h:10, from src/third_party/mozjs-45/extract/js/src/vm/DebuggerMemory.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:23, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::ReadBarriered; HashPolicy = js::SavedFrame::HashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SavedStacks.cpp:1071:17: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashSet, js::SavedFrame::HashPolicy, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:17, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ReceiverGuard.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/extract/js/src/builtin/RegExp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:18: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:18: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:18: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:18: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.cpp:7: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/GCAPI.h:13, from src/third_party/mozjs-45/include/js/Value.h:21, from src/third_party/mozjs-45/extract/js/src/vm/Value.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/vm/WeakMapPtr.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp g++ -o build/fedora/third_party/mozjs-45/extract/js/src/jsmath.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/jsmath.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:29: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:29: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:29: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:29: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:39: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:29: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:29: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:29: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:30: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:39: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:39: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:39: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/jsmath.h:14, from src/third_party/mozjs-45/extract/js/src/jsmath.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/extract/js/src/jsmath.cpp: In function 'uint64_t js::GenerateRandomSeed()': src/third_party/mozjs-45/extract/js/src/jsmath.cpp:762:13: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 762 | read(fd, static_cast(&seed), sizeof(seed)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/HeapAPI.h:12, from src/third_party/mozjs-45/include/js/Id.h:25, from src/third_party/mozjs-45/extract/js/src/vm/Id.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodCopy(T*, const T*, size_t) [with T = js::HeapSlot; size_t = unsigned int]': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.cpp:806:16: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:110:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 110 | memcpy(aDst, aSrc, aNElem * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsiter.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:10, from src/third_party/mozjs-45/extract/js/src/vm/Interpreter.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.cpp:11: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/vm/String.h:18, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/frontend/BytecodeCompiler.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:21, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/BytecodeCompiler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = unsigned int; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:63:22: required from 'bool js::InlineMap::switchToMap() [with K = JSAtom*; V = unsigned int; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:84:14: required from 'bool js::InlineMap::switchAndAdd(const K&, const V&) [with K = JSAtom*; V = unsigned int; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:265:24: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, const K&, const V&) [with K = JSAtom*; V = unsigned int; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/frontend/BytecodeEmitter.h:266:30: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = js::frontend::DefinitionList; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:63:22: required from 'bool js::InlineMap::switchToMap() [with K = JSAtom*; V = js::frontend::DefinitionList; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:84:14: required from 'bool js::InlineMap::switchAndAdd(const K&, const V&) [with K = JSAtom*; V = js::frontend::DefinitionList; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:265:24: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, const K&, const V&) [with K = JSAtom*; V = js::frontend::DefinitionList; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/frontend/ParseMaps.h:457:28: required from 'bool js::frontend::AtomDecls::addUnique(JSAtom*, js::frontend::AtomDecls::DefinitionNode) [with ParseHandler = js::frontend::FullParseHandler; js::frontend::AtomDecls::DefinitionNode = js::frontend::Definition*]' src/third_party/mozjs-45/extract/js/src/frontend/ParseMaps.cpp:136:30: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/extract/js/src/jsatom.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/jsatom.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:28: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:15, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:26: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:26: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:26: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsatominlines.h:10, from src/third_party/mozjs-45/extract/js/src/jsatom.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:14, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/gc/Zone.h:14, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:14, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:14, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:14, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.h:10, from src/third_party/mozjs-45/extract/js/src/builtin/ModuleObject.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/jit/Recover.cpp:29, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:20: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:13, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:12, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/jit/RangeAnalysis.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:11: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/jit/ProcessExecutableMemory.cpp:16, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jshashutil.h:10, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::ObjectGroup]': src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:34:12: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:78:7: note: 'class js::ObjectGroup' declared here 78 | class ObjectGroup : public gc::TenuredCell | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::ObjectGroupCompartment]': src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:1608:12: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::ObjectGroupCompartment'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:537:7: note: 'class js::ObjectGroupCompartment' declared here 537 | class ObjectGroupCompartment | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.h:11, from src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186: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-45/extract/js/src/vm/ObjectGroup.cpp:1701:35: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable >, js::HashMap, js::ObjectGroupCompartment::AllocationSiteKey, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186: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-45/extract/js/src/vm/ObjectGroup.cpp:1703:32: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable >, js::HashMap, js::ObjectGroupCompartment::ArrayObjectKey, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry > >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186: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-45/extract/js/src/vm/ObjectGroup.cpp:1711:32: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::ObjectGroupCompartment::NewEntry; HashPolicy = js::ObjectGroupCompartment::NewEntry; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/ObjectGroup.cpp:1714:31: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsfun.h:14, from src/third_party/mozjs-45/extract/js/src/jit/JitFrameIterator.h:10, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:12, from src/third_party/mozjs-45/extract/js/src/jit/LIR.h:15, from src/third_party/mozjs-45/extract/js/src/jit/shared/Lowering-shared.h:13, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.h:10, from src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Lowering-x86-shared.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp g++ -o build/fedora/third_party/mozjs-45/extract/js/src/perf/pm_stub.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/perf/pm_stub.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:15, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:15, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:15, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:15, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/jsfun.h:15, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:15, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/builtin/MapObject.h:13, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:17, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:38: src/third_party/mozjs-45/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-45/extract/js/src/vm/ArgumentsObject.cpp:283:38: required from here src/third_party/mozjs-45/extract/js/src/vm/ArgumentsObject.cpp:254:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::HeapValue' {aka 'class js::HeapPtr'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 254 | memset(data->args, 0, numArgs * sizeof(Value)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:438:7: note: 'js::HeapValue' {aka 'class js::HeapPtr'} declared here 438 | class HeapPtr : public WriteBarrieredBase | ^~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:38: src/third_party/mozjs-45/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-45/extract/js/src/vm/ArgumentsObject.cpp:296:18: required from here src/third_party/mozjs-45/extract/js/src/vm/ArgumentsObject.cpp:254:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::HeapValue' {aka 'class js::HeapPtr'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 254 | memset(data->args, 0, numArgs * sizeof(Value)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:438:7: note: 'js::HeapValue' {aka 'class js::HeapPtr'} declared here 438 | class HeapPtr : public WriteBarrieredBase | ^~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:38: src/third_party/mozjs-45/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-45/extract/js/src/vm/ArgumentsObject.cpp:315:18: required from here src/third_party/mozjs-45/extract/js/src/vm/ArgumentsObject.cpp:254:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::HeapValue' {aka 'class js::HeapPtr'} with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 254 | memset(data->args, 0, numArgs * sizeof(Value)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:438:7: note: 'js::HeapValue' {aka 'class js::HeapPtr'} declared here 438 | class HeapPtr : public WriteBarrieredBase | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::AsmJSModule::StaticLinkData::Pod]': src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:681:44: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::AsmJSModule::StaticLinkData::Pod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ArrayBufferObject.cpp:37, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:47: src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:683:16: note: 'struct js::AsmJSModule::StaticLinkData::Pod' declared here 683 | struct Pod { | ^~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/include/js/Proxy.h:12, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.h:10, from src/third_party/mozjs-45/extract/js/src/proxy/ScriptedDirectProxyHandler.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/NativeObject-inl.h:19, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:37, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:24, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:25, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject-inl.h:19, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:37, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject-inl.h:19, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:37, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject-inl.h:19, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:37, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::AsmJSModule::StaticLinkData::Pod]': src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:681:44: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::AsmJSModule::StaticLinkData::Pod'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.cpp:41, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:20: src/third_party/mozjs-45/extract/js/src/asmjs/AsmJSModule.h:683:16: note: 'struct js::AsmJSModule::StaticLinkData::Pod' declared here 683 | struct Pod { | ^~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:211:42: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsopcode.cpp:39, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:38: src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:207:8: note: 'struct js::gc::TenureCountCache' declared here 207 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = {anonymous}::BytecodeParser::Bytecode]': src/third_party/mozjs-45/extract/js/src/jsopcode.cpp:230:38: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class {anonymous}::BytecodeParser::Bytecode'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:38: src/third_party/mozjs-45/extract/js/src/jsopcode.cpp:227:11: note: 'class {anonymous}::BytecodeParser::Bytecode' declared here 227 | class Bytecode | ^~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/jsnum.h:13, from src/third_party/mozjs-45/extract/js/src/jsnum.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp In file included from src/third_party/mozjs-45/extract/js/src/json.cpp:23, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:29: In member function 'js::JSONParserBase::JSONParserBase(js::JSONParserBase&&)', inlined from 'js::JSONParser::JSONParser(js::JSONParser&&)' at src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:221:22, inlined from 'js::DispatchWrapper >::DispatchWrapper >(js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:635:9, inlined from 'JS::Rooted >::Rooted >(JSContext* const&, js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:713:9, inlined from 'js::ParseJSONWithReviver(JSContext*, mozilla::Range, JS::Handle, JS::MutableHandle)bool' at src/third_party/mozjs-45/extract/js/src/json.cpp:825:31: src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:124:9: warning: 'MEM[(struct JSONParserBase &)&D.364655].v' is used uninitialized [-Wuninitialized] 124 | : v(other.v), | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:29: src/third_party/mozjs-45/extract/js/src/json.cpp: In function 'js::ParseJSONWithReviver(JSContext*, mozilla::Range, JS::Handle, JS::MutableHandle)bool': src/third_party/mozjs-45/extract/js/src/json.cpp:825:42: note: '' declared here 825 | Rooted> parser(cx, JSONParser(cx, chars)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/json.cpp:23, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:29: In member function 'js::JSONParserBase::JSONParserBase(js::JSONParserBase&&)', inlined from 'js::JSONParser::JSONParser(js::JSONParser&&)' at src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:221:22, inlined from 'js::DispatchWrapper >::DispatchWrapper >(js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:635:9, inlined from 'JS::Rooted >::Rooted >(JSContext* const&, js::JSONParser&&)' at src/third_party/mozjs-45/include/js/RootingAPI.h:713:9, inlined from 'js::ParseJSONWithReviver(JSContext*, mozilla::Range, JS::Handle, JS::MutableHandle)bool' at src/third_party/mozjs-45/extract/js/src/json.cpp:825:31: src/third_party/mozjs-45/extract/js/src/vm/JSONParser.h:124:9: warning: 'MEM[(struct JSONParserBase &)&D.365027].v' is used uninitialized [-Wuninitialized] 124 | : v(other.v), | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.cpp:29: src/third_party/mozjs-45/extract/js/src/json.cpp: In function 'js::ParseJSONWithReviver(JSContext*, mozilla::Range, JS::Handle, JS::MutableHandle)bool': src/third_party/mozjs-45/extract/js/src/json.cpp:825:42: note: '' declared here 825 | Rooted> parser(cx, JSONParser(cx, chars)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Allocator.cpp:18, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:20: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSErrorReport]': src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.cpp:602:12: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class JSErrorReport'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Heap.h:20, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:12, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/extract/js/src/jsapi.h:4761:7: note: 'class JSErrorReport' declared here 4761 | class JSErrorReport | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:16, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:211:42: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/Allocator.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:20: src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:207:8: note: 'struct js::gc::TenureCountCache' declared here 207 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/frontend/TokenStream.h:23, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.h:12, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode-inl.h:10, from src/third_party/mozjs-45/extract/js/src/frontend/ParseNode.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/extract/js/src/jsarray.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/jsarray.cpp In file included from src/third_party/mozjs-45/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-45/extract/js/src/jsarray.h:15, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-45/extract/js/src/jsarray.h:15, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-45/extract/js/src/jsarray.h:15, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ArrayObject.h:10, from src/third_party/mozjs-45/extract/js/src/jsarray.h:15, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/extract/js/src/vm/Initialization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:19: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:19: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:19: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:19: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:19: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/Ion.h:12, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:19: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/AtomicsObject.h:11, from src/third_party/mozjs-45/extract/js/src/vm/Initialization.cpp:17: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/ScopeObject-inl.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ArgumentsObject-inl.h:16, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:41: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:19: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:19: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ArgumentsObject-inl.h:14, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:41: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ArgumentsObject-inl.h:14, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:41: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/CallArgs.h:38, from src/third_party/mozjs-45/include/js/CallNonGenericMethod.h:12, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:13, from src/third_party/mozjs-45/extract/js/src/vm/ArgumentsObject-inl.h:14, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:41: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/NamespaceImports.h:16, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:10, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/jsarray.h:12, from src/third_party/mozjs-45/extract/js/src/jsarray.cpp:7: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Interpreter-inl.h:20, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:90, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:13, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:88, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:13, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:88, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/include/js/RootingAPI.h:17, from src/third_party/mozjs-45/include/js/TraceableVector.h:12, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jsscriptinlines.h:13, from src/third_party/mozjs-45/extract/js/src/jsapi.cpp:88, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsalloc.h:18, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/include/js/Utility.h: In instantiation of 'void js_delete_poison(const T*) [with T = JSContext]': src/third_party/mozjs-45/extract/js/src/jscntxt.cpp:184:21: required from here src/third_party/mozjs-45/include/js/Utility.h:365:15: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'struct JSContext' with no trivial copy-assignment [-Wclass-memaccess] 365 | memset(const_cast(p), 0x3B, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/extract/js/src/jscntxt.h:294:8: note: 'struct JSContext' declared here 294 | struct JSContext : public js::ExclusiveContext, | ^~~~~~~~~ In file included from src/third_party/mozjs-45/include/js/TracingAPI.h:12, from src/third_party/mozjs-45/include/js/TraceableVector.h:13, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:14, from src/third_party/mozjs-45/extract/js/src/jsalloc.cpp:9, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::ReadBarriered; HashPolicy = js::StackBaseShape; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jscompartment.cpp:877:25: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashSet, js::StackBaseShape, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::InitialShapeEntry; HashPolicy = js::InitialShapeEntry; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jscompartment.cpp:879:28: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/ds/LifoAlloc.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:16, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/gc/Heap.h:20, from src/third_party/mozjs-45/extract/js/src/gc/Nursery.h:15, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:17, from src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:7: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424: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-45/extract/js/src/gc/StoreBuffer.h:86:30: required from 'void js::gc::StoreBuffer::MonoTypeBuffer::clear() [with T = js::gc::StoreBuffer::ValueEdge]' src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:78:20: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424: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-45/extract/js/src/gc/StoreBuffer.h:86:30: required from 'void js::gc::StoreBuffer::MonoTypeBuffer::clear() [with T = js::gc::StoreBuffer::CellPtrEdge]' src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:79:21: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424: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-45/extract/js/src/gc/StoreBuffer.h:86:30: required from 'void js::gc::StoreBuffer::MonoTypeBuffer::clear() [with T = js::gc::StoreBuffer::SlotsEdge]' src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:80:21: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = const js::gc::StoreBuffer::WholeCellEdges; HashPolicy = js::HashSet, js::SystemAllocPolicy>::SetOps; AllocPolicy = js::SystemAllocPolicy]': src/third_party/mozjs-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::gc::StoreBuffer::WholeCellEdges; HashPolicy = js::gc::StoreBuffer::PointerEdgeHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.h:86:30: required from 'void js::gc::StoreBuffer::MonoTypeBuffer::clear() [with T = js::gc::StoreBuffer::WholeCellEdges]' src/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.cpp:81:26: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:28, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsobj.h:21, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/ObjectGroup.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:31, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:11, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/vm/RegExpObject.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/RegExp.h:10, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:15, from src/third_party/mozjs-45/extract/js/src/jsweakmap.h:13, from src/third_party/mozjs-45/extract/js/src/builtin/TypedObject.h:11, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:13, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:19, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/builtin/SIMD.h:10, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:18, from src/third_party/mozjs-45/extract/js/src/jit/MIR.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.cpp:2: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.cpp:52, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape-inl.h:22, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:17, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape-inl.h:22, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:17, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape-inl.h:22, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:17, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:11, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSScript]': src/third_party/mozjs-45/extract/js/src/jsscript.cpp:2726:12: required from here src/third_party/mozjs-45/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 assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/extract/js/src/jsscript.h:933:7: note: 'class JSScript' declared here 933 | class JSScript : public js::gc::TenuredCell | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspropertytree.h:13, from src/third_party/mozjs-45/extract/js/src/jspropertytree.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::SharedScriptData*; HashPolicy = js::ScriptBytecodeHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jsscript.cpp:2584:16: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = js::WatchKey; Value = js::Watchpoint; HashPolicy = js::WatchKeyHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jswatchpoint.cpp:113:14: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h: In instantiation of 'void js::detail::HashTable::clear() [with T = js::HashMapEntry, js::RelocatablePtr >; HashPolicy = js::HashMap, js::RelocatablePtr, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy; AllocPolicy = js::RuntimeAllocPolicy]': src/third_party/mozjs-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = js::RelocatablePtr; Value = js::RelocatablePtr; HashPolicy = js::MovableCellHasher >; AllocPolicy = js::RuntimeAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jsweakmap.cpp:199:14: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'js::detail::HashTable, js::RelocatablePtr >, js::HashMap, js::RelocatablePtr, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::RelocatablePtr > >'} with no trivial copy-assignment [-Wclass-memaccess] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::RelocatablePtr >, js::HashMap, js::RelocatablePtr, js::MovableCellHasher >, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry, js::RelocatablePtr > >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSAtom*; Value = unsigned int; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:63:22: required from 'bool js::InlineMap::switchToMap() [with K = JSAtom*; V = unsigned int; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:84:14: required from 'bool js::InlineMap::switchAndAdd(const K&, const V&) [with K = JSAtom*; V = unsigned int; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/ds/InlineMap.h:265:24: required from 'bool js::InlineMap::add(js::InlineMap::AddPtr&, const K&, const V&) [with K = JSAtom*; V = unsigned int; unsigned int InlineElems = 24]' src/third_party/mozjs-45/extract/js/src/frontend/BytecodeEmitter.h:266:30: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp g++ -o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -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_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora/third_party/mozjs-45/extract/js/src -Isrc/third_party/mozjs-45/extract/js/src -Ibuild/fedora/third_party/mozjs-45/extract/mfbt -Isrc/third_party/mozjs-45/extract/mfbt -Ibuild/fedora/third_party/mozjs-45/extract/intl/icu/source/common -Isrc/third_party/mozjs-45/extract/intl/icu/source/common -Ibuild/fedora/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/include -Ibuild/fedora/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/mongo_sources -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/build -Isrc/third_party/mozjs-45/platform/i386/linux/build -Ibuild/fedora/third_party/mozjs-45/platform/i386/linux/include -Isrc/third_party/mozjs-45/platform/i386/linux/include src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:18, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:18, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:18, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:18, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::copyDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1040:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1040 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::initDenseElements(uint32_t, const JS::Value*, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1048:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1048 | memcpy(&elements_[dstStart], src, count * sizeof(HeapSlot)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElements(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1082:20: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1082 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(HeapSlot)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h: In member function 'void js::NativeObject::moveDenseElementsNoPreBarrier(uint32_t, uint32_t, uint32_t)': src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:1094:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class js::HeapSlot'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 1094 | memmove(elements_ + dstStart, elements_ + srcStart, count * sizeof(Value)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:35, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/jsatom.h:14, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:22, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingTypes.h:11, from src/third_party/mozjs-45/extract/js/src/vm/TraceLoggingGraph.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TraceLogging.h:19, from src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:22, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/IonCode.h:23, from src/third_party/mozjs-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/jsscript.h:26, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jsexn.h:15, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:35, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:35, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:35, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::gc::TenureCountCache]': src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:211:42: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsgc.cpp:213, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:38: src/third_party/mozjs-45/extract/js/src/gc/GCInternals.h:207:8: note: 'struct js::gc::TenureCountCache' declared here 207 | struct TenureCountCache | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsutil.h:17, from src/third_party/mozjs-45/extract/js/src/jsdtoa.cpp:15, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NativeIterator]': src/third_party/mozjs-45/extract/js/src/jsiter.cpp:624:12: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxtinlines.h:13, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:35, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/extract/js/src/jsiter.h:31:8: note: 'struct js::NativeIterator' declared here 31 | struct NativeIterator | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JS::Value*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jsgc.cpp:1406:24: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = js::EvalCacheEntry; HashPolicy = js::EvalCacheHashPolicy; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jsgc.cpp:3791:24: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ src/third_party/mozjs-45/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-45/include/js/HashTable.h:424:67: required from 'void js::HashSet::clear() [with T = JS::Zone*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/jsgc.cpp:4678:37: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::SystemAllocPolicy>::SetOps, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/BitSet.h:12, from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:10, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jscntxtinlines.h:16, from src/third_party/mozjs-45/extract/js/src/jscompartmentinlines.h:14, from src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:29, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:35, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/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 = unsigned int]': src/third_party/mozjs-45/include/js/HashTable.h:1144: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-45/include/js/HashTable.h:1212: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-45/include/js/HashTable.h:79:73: 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-45/extract/js/src/jit/LIR.h:1696:37: required from here src/third_party/mozjs-45/extract/js/src/jit/JitAllocPolicy.h:92:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::detail::HashTableEntry >' with no trivial copy-assignment [-Wclass-memaccess] 92 | memset(p, 0, numElems * sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsexn.h:14, from src/third_party/mozjs-45/extract/js/src/jsexn.cpp:11, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.cpp:11: src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'class js::detail::HashTableEntry >' declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/NativeObject-inl.h:19, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:40, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/jsobjinlines.h: In static member function 'static JSObject* JSObject::create(js::ExclusiveContext*, js::gc::AllocKind, js::gc::InitialHeap, js::HandleShape, js::HandleObjectGroup)': src/third_party/mozjs-45/extract/js/src/jsobjinlines.h:355:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class js::HeapSlot'; use assignment instead [-Wclass-memaccess] 355 | memset(obj->as().fixedSlots(), 0, size - sizeof(js::NativeObject)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:18, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:650:7: note: 'class js::HeapSlot' declared here 650 | class HeapSlot : public WriteBarrieredBase | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::TabSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:40:34: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:18, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:31:8: note: 'struct JS::TabSizes' declared here 31 | struct TabSizes | ^~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JS::ServoSizes]': src/third_party/mozjs-45/include/js/MemoryMetrics.h:71:36: required from here src/third_party/mozjs-45/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-45/extract/js/src/gc/StoreBuffer.h:18, from src/third_party/mozjs-45/extract/js/src/gc/Barrier.h:13, from src/third_party/mozjs-45/extract/js/src/gc/Tracer.h:12, from src/third_party/mozjs-45/extract/js/src/ds/IdValuePair.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:18, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/js/MemoryMetrics.h:59:8: note: 'struct JS::ServoSizes' declared here 59 | struct ServoSizes | ^~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::PreliminaryObjectArray]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:808:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:796:7: note: 'class js::PreliminaryObjectArray' declared here 796 | class PreliminaryObjectArray | ^~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::TypeNewScript]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:939:39: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:886:7: note: 'class js::TypeNewScript' declared here 886 | class TypeNewScript | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = JSSubString]': src/third_party/mozjs-45/extract/js/src/jsstr.h:73:37: required from here src/third_party/mozjs-45/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)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/String.h:16, from src/third_party/mozjs-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/jsstr.h:68:8: note: 'struct JSSubString' declared here 68 | struct JSSubString { | ^~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::StaticStrings]': src/third_party/mozjs-45/extract/js/src/vm/String.h:1092:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/Shape.h:32, from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/String.h:1074:7: note: 'class js::StaticStrings' declared here 1074 | class StaticStrings | ^~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::BaseShape]': src/third_party/mozjs-45/extract/js/src/vm/Shape.h:392:25: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class js::BaseShape' with no trivial copy-assignment [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsobj.h:27, from src/third_party/mozjs-45/extract/js/src/vm/NativeObject.h:16, from src/third_party/mozjs-45/extract/js/src/builtin/SymbolObject.h:10, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Shape.h:323:7: note: 'class js::BaseShape' declared here 323 | class BaseShape : public gc::TenuredCell | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::IonScriptCounts]': src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:699:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jsscript.h:24, from src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:24, from src/third_party/mozjs-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/IonCode.h:686:8: note: 'struct js::jit::IonScriptCounts' declared here 686 | struct IonScriptCounts | ^~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::NewObjectCache]': src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:293:40: required from here src/third_party/mozjs-45/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-45/extract/js/src/jscntxt.h:17, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/Runtime.h:244:7: note: 'class js::NewObjectCache' declared here 244 | class NewObjectCache | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::Address]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:290:33: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::Address'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:282:8: note: 'struct js::jit::Address' declared here 282 | struct Address | ^~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::BaseIndex]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:306:35: required from here src/third_party/mozjs-45/include/mozilla/PodOperations.h:32:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct js::jit::BaseIndex'; use assignment or value-initialization instead [-Wclass-memaccess] 32 | memset(aT, 0, sizeof(T)); | ~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:295:8: note: 'struct js::jit::BaseIndex' declared here 295 | struct BaseIndex | ^~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*) [with T = js::jit::CodeOffsetJump]': src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:513:25: required from here src/third_party/mozjs-45/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-45/extract/js/src/jit/Safepoints.h:12, from src/third_party/mozjs-45/extract/js/src/jit/JitFrames.h:16, from src/third_party/mozjs-45/extract/js/src/jit/Bailouts.h:13, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:16, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/jit/shared/Assembler-shared.h:491:7: note: 'class js::jit::CodeOffsetJump' declared here 491 | class CodeOffsetJump | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jspubtd.h:16, from src/third_party/mozjs-45/extract/js/src/jsapi.h:25, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/include/mozilla/PodOperations.h: In instantiation of 'void mozilla::PodZero(T*, size_t) [with T = js::TemporaryTypeSet; size_t = unsigned int]': src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:1112:12: required from here src/third_party/mozjs-45/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-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:655:7: note: 'class js::TemporaryTypeSet' declared here 655 | class TemporaryTypeSet : public TypeSet | ^~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jsapi.h:29, from src/third_party/mozjs-45/extract/js/src/jsfriendapi.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.h:15, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:12, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/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-45/include/js/HashTable.h:186:67: required from 'void js::HashMap::clear() [with Key = JSScript*; Value = const char*; HashPolicy = js::DefaultHasher; AllocPolicy = js::SystemAllocPolicy]' src/third_party/mozjs-45/extract/js/src/vm/SPSProfiler.h:256:18: required from here src/third_party/mozjs-45/include/js/HashTable.h:1550: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] 1550 | memset(table, 0, sizeof(*table) * capacity()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/mozjs-45/include/js/HashTable.h:722:7: note: 'js::detail::HashTable, js::HashMap, js::SystemAllocPolicy>::MapHashPolicy, js::SystemAllocPolicy>::Entry' {aka 'class js::detail::HashTableEntry >'} declared here 722 | class HashTableEntry | ^~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/jit/SharedIC.h:20, from src/third_party/mozjs-45/extract/js/src/jit/BaselineIC.h:20, from src/third_party/mozjs-45/extract/js/src/jit/MIR.h:20, from src/third_party/mozjs-45/extract/js/src/jit/IonAnalysis.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:27, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/TypedArrayCommon.h: In instantiation of 'static void js::UnsharedOps::memmove(SharedMem, SharedMem, size_t) [with T = js::uint8_clamped; size_t = unsigned int]': src/third_party/mozjs-45/extract/js/src/vm/TypedArrayCommon.h:362:25: required from 'static bool js::ElementSpecific::setFromOverlappingTypedArray(JSContext*, JS::Handle, JS::Handle, uint32_t) [with SpecificArray = {anonymous}::TypedArrayObjectTemplate; Ops = js::UnsharedOps; typename SpecificArray::SomeTypedArray = js::TypedArrayObject; uint32_t = unsigned int]' src/third_party/mozjs-45/extract/js/src/vm/TypedArrayCommon.h:208:52: required from 'static bool js::ElementSpecific::setFromAnyTypedArray(JSContext*, JS::Handle, JS::HandleObject, uint32_t) [with SpecificArray = {anonymous}::TypedArrayObjectTemplate; Ops = js::UnsharedOps; typename SpecificArray::SomeTypedArray = js::TypedArrayObject; JS::HandleObject = JS::Handle; uint32_t = unsigned int]' src/third_party/mozjs-45/extract/js/src/vm/TypedArrayCommon.h:813:94: required from 'static bool js::TypedArrayMethods::setFromAnyTypedArray(JSContext*, JS::Handle, JS::HandleObject, uint32_t) [with SomeTypedArray = js::TypedArrayObject; JS::HandleObject = JS::Handle; uint32_t = unsigned int]' src/third_party/mozjs-45/extract/js/src/vm/TypedArrayCommon.h:735:38: required from 'static bool js::TypedArrayMethods::set(JSContext*, const JS::CallArgs&) [with SomeTypedArray = js::TypedArrayObject]' src/third_party/mozjs-45/extract/js/src/vm/TypedArrayObject.cpp:841:70: required from here src/third_party/mozjs-45/extract/js/src/vm/TypedArrayCommon.h:174:18: 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] 174 | ::memmove(dest.unwrapUnshared(), src.unwrapUnshared(), size); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/mozjs-45/extract/js/src/vm/GlobalObject.h:18, from src/third_party/mozjs-45/extract/js/src/jscompartment.h:18, from src/third_party/mozjs-45/extract/js/src/jit/BaselineJIT.h:13, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference-inl.h:17, from src/third_party/mozjs-45/extract/js/src/vm/TypeInference.cpp:7, from src/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.cpp:2: src/third_party/mozjs-45/extract/js/src/vm/ArrayBufferObject.h:414:8: note: 'struct js::uint8_clamped' declared here 414 | struct uint8_clamped { | ^~~~~~~~~~~~~ g++ -o build/fedora/mongo/scripting/mozjs/base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/base.cpp g++ -o build/fedora/mongo/scripting/mozjs/numberdecimal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/numberdecimal.cpp g++ -o build/fedora/mongo/scripting/mozjs/nativefunction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/nativefunction.cpp g++ -o build/fedora/mongo/scripting/mozjs/dbcollection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/dbcollection.cpp ar rcsTD build/fedora/third_party/mozjs-45/libmozjs.a build/fedora/third_party/mozjs-45/extract/js/src/builtin/RegExp.o build/fedora/third_party/mozjs-45/extract/js/src/frontend/Parser.o build/fedora/third_party/mozjs-45/extract/js/src/jsarray.o build/fedora/third_party/mozjs-45/extract/js/src/jsatom.o build/fedora/third_party/mozjs-45/extract/js/src/jsmath.o build/fedora/third_party/mozjs-45/extract/js/src/jsutil.o build/fedora/third_party/mozjs-45/extract/js/src/gc/StoreBuffer.o build/fedora/third_party/mozjs-45/extract/js/src/mfbt/Unified_cpp_mfbt0.o build/fedora/third_party/mozjs-45/extract/js/src/perf/pm_stub.o build/fedora/third_party/mozjs-45/extract/js/src/vm/Initialization.o build/fedora/third_party/mozjs-45/extract/mfbt/Compression.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src0.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src1.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src10.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src11.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src12.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src13.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src14.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src15.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src16.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src17.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src18.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src19.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src2.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src20.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src21.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src22.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src23.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src24.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src25.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src26.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src27.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src28.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src29.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src3.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src30.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src31.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src32.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src33.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src34.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src35.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src36.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src4.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src5.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src6.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src7.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src8.o build/fedora/third_party/mozjs-45/platform/i386/linux/build/Unified_cpp_js_src9.o Skipping ranlib for thin archive build/fedora/third_party/mozjs-45/libmozjs.a g++ -o build/fedora/mongo/scripting/bson_template_evaluator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/bson_template_evaluator.cpp g++ -o build/fedora/mongo/scripting/mozjs/cursor_handle.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/cursor_handle.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/jsobj.h:45, from src/mongo/scripting/bson_template_evaluator.h:49, from src/mongo/scripting/bson_template_evaluator.cpp:29: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61, inlined from 'mongo::BSONElement::String[abi:cxx11]() const' at src/mongo/bson/bsonelement.h:109:19, inlined from 'mongo::BsonTemplateEvaluator::evalVariable(mongo::BsonTemplateEvaluator*, char const*, mongo::BSONObj const&, mongo::BSONObjBuilder&)' at src/mongo/scripting/bson_template_evaluator.cpp:325:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/scripting/libbson_template_evaluator.a build/fedora/mongo/scripting/bson_template_evaluator.o Skipping ranlib for thin archive build/fedora/mongo/scripting/libbson_template_evaluator.a g++ -o build/fedora/mongo/scripting/mozjs/oid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/oid.cpp g++ -o build/fedora/mongo/scripting/mozjs/exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/exception.cpp g++ -o build/fedora/mongo/scripting/mozjs/jsstringwrapper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/jsstringwrapper.cpp g++ -o build/fedora/mongo/scripting/mozjs/mongohelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/mongohelpers.cpp g++ -o build/fedora/mongo/scripting/mozjs/jscustomallocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/jscustomallocator.cpp g++ -o build/fedora/mongo/scripting/mozjs/objectwrapper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/objectwrapper.cpp g++ -o build/fedora/mongo/scripting/mozjs/db.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/db.cpp g++ -o build/fedora/mongo/scripting/mozjs/idwrapper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/idwrapper.cpp g++ -o build/fedora/mongo/scripting/mozjs/uri.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/uri.cpp g++ -o build/fedora/mongo/scripting/mozjs/valuewriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/valuewriter.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:72:21: warning: loop variable 'hp' creates a copy from type 'const mongo::HostAndPort' [-Wrange-loop-construct] 72 | for (const auto hp : parsed.getServers()) { | ^~ src/mongo/scripting/mozjs/uri.cpp:72:21: note: use reference type to prevent copying 72 | for (const auto hp : parsed.getServers()) { | ^~ | & g++ -o build/fedora/mongo/scripting/mozjs/code.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/code.cpp g++ -o build/fedora/mongo/scripting/mozjs/bson.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/bson.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/scripting/mozjs/bson.h:33, from src/mongo/scripting/mozjs/bson.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/scripting/mozjs/bson.cpp:95:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/scripting/mozjs/error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/error.cpp g++ -o build/fedora/mongo/scripting/mozjs/dbref.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/dbref.cpp g++ -o build/fedora/mongo/scripting/mozjs/maxkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/maxkey.cpp g++ -o build/fedora/mongo/scripting/mozjs/regexp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/regexp.cpp g++ -o build/fedora/mongo/scripting/mozjs/engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -Wno-non-virtual-dtor -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-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 -Wno-invalid-offsetof -fPIE -DJS_USE_CUSTOM_ALLOCATOR -DSTATIC_JS_API=1 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/mozjs-45/include -Isrc/third_party/mozjs-45/mongo_sources -Isrc/third_party/mozjs-45/platform/i386/linux/include -Ibuild/fedora -Isrc src/mongo/scripting/mozjs/engine.cpp g++ -o build/fedora/mongo/db/catalog/index_key_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_key_validate.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/catalog/index_key_validate.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/catalog/index_key_validate.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/index/index_descriptor.h:37, from src/mongo/db/catalog/index_key_validate.h:33, from src/mongo/db/catalog/index_key_validate.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/catalog/index_key_validate.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/catalog/index_key_validate.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/index/index_descriptor.h:37, from src/mongo/db/catalog/index_key_validate.h:33, from src/mongo/db/catalog/index_key_validate.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/scripting/libscripting.a build/fedora/mongo/scripting/mozjs/base.o build/fedora/mongo/scripting/mozjs/bindata.o build/fedora/mongo/scripting/mozjs/bson.o build/fedora/mongo/scripting/mozjs/code.o build/fedora/mongo/scripting/mozjs/countdownlatch.o build/fedora/mongo/scripting/mozjs/cursor.o build/fedora/mongo/scripting/mozjs/cursor_handle.o build/fedora/mongo/scripting/mozjs/db.o build/fedora/mongo/scripting/mozjs/dbcollection.o build/fedora/mongo/scripting/mozjs/dbpointer.o build/fedora/mongo/scripting/mozjs/dbquery.o build/fedora/mongo/scripting/mozjs/dbref.o build/fedora/mongo/scripting/mozjs/engine.o build/fedora/mongo/scripting/mozjs/error.o build/fedora/mongo/scripting/mozjs/exception.o build/fedora/mongo/scripting/mozjs/global.o build/fedora/mongo/scripting/mozjs/idwrapper.o build/fedora/mongo/scripting/mozjs/implscope.o build/fedora/mongo/scripting/mozjs/internedstring.o build/fedora/mongo/scripting/mozjs/jscustomallocator.o build/fedora/mongo/scripting/mozjs/jsstringwrapper.o build/fedora/mongo/scripting/mozjs/jsthread.o build/fedora/mongo/scripting/mozjs/maxkey.o build/fedora/mongo/scripting/mozjs/minkey.o build/fedora/mongo/scripting/mozjs/mongo.o build/fedora/mongo/scripting/mozjs/mongohelpers.o build/fedora/mongo/scripting/mozjs/mongohelpers_js.o build/fedora/mongo/scripting/mozjs/nativefunction.o build/fedora/mongo/scripting/mozjs/numberdecimal.o build/fedora/mongo/scripting/mozjs/numberint.o build/fedora/mongo/scripting/mozjs/numberlong.o build/fedora/mongo/scripting/mozjs/object.o build/fedora/mongo/scripting/mozjs/objectwrapper.o build/fedora/mongo/scripting/mozjs/oid.o build/fedora/mongo/scripting/mozjs/PosixNSPR.o build/fedora/mongo/scripting/mozjs/proxyscope.o build/fedora/mongo/scripting/mozjs/regexp.o build/fedora/mongo/scripting/mozjs/session.o build/fedora/mongo/scripting/mozjs/status.o build/fedora/mongo/scripting/mozjs/timestamp.o build/fedora/mongo/scripting/mozjs/uri.o build/fedora/mongo/scripting/mozjs/valuereader.o build/fedora/mongo/scripting/mozjs/valuewriter.o build/fedora/mongo/scripting/mozjs/end_sessions_gen.o Skipping ranlib for thin archive build/fedora/mongo/scripting/libscripting.a src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/shell/dbshell.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/dbshell.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/catalog/index_key_validate.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/third_party/shim_mozjs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_mozjs.cpp ar rcsTD build/fedora/third_party/libshim_mozjs.a build/fedora/third_party/shim_mozjs.o Skipping ranlib for thin archive build/fedora/third_party/libshim_mozjs.a ar rcsTD build/fedora/mongo/db/catalog/libindex_key_validate.a build/fedora/mongo/db/catalog/index_key_validate.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libindex_key_validate.a g++ -o build/fedora/mongo/shell/mongodbcr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/shell/mongodbcr.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/system/detail/generic_category_message.hpp:15, from /usr/include/boost/system/detail/generic_category.hpp:14, from /usr/include/boost/system/detail/error_condition.hpp:14, from /usr/include/boost/system/detail/error_code.hpp:14, from /usr/include/boost/system/error_code.hpp:13, from /usr/include/boost/filesystem/path_traits.hpp:22, from /usr/include/boost/filesystem/path.hpp:26, from /usr/include/boost/filesystem/operations.hpp:26, from src/mongo/shell/dbshell.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/shell/mongodbcr.cpp: In function 'mongo::StatusWith > mongo::auth::{anonymous}::extractDBField(const mongo::BSONObj&)': src/mongo/shell/mongodbcr.cpp:61:21: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(db); | ~~~~~~~~~^~~~ src/mongo/shell/mongodbcr.cpp:61:21: note: remove 'std::move' call src/mongo/shell/mongodbcr.cpp: In function 'mongo::StatusWith mongo::auth::{anonymous}::createMongoCRGetNonceCmd(const mongo::BSONObj&)': src/mongo/shell/mongodbcr.cpp:74:21: warning: redundant move in return statement [-Wredundant-move] 74 | return std::move(request); | ~~~~~~~~~^~~~~~~~~ src/mongo/shell/mongodbcr.cpp:74:21: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/near.cpp Using tempfile /tmp/tmpf887cykl.lnk for command line: g++ -o build/fedora/mongo/mongo -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,-z,relro -pie build/fedora/mongo/shell/dbshell.o build/fedora/mongo/shell/mongodbcr.o build/fedora/mongo/shell/shell_options_init.o -Wl,--start-group -Wl,--whole-archive build/fedora/mongo/util/libpassword.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/libshell_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libversion_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsignal_handlers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblog_process_details.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplica_set_messages.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_process.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libstorage_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librollback_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/cmdline_utils/libcmdline_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/shell/libbenchrun.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libscripting.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_mozjs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/mozjs-45/libmozjs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libscripting_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/shell/libmongojs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libbson_template_evaluator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/liblinenoise_utf8.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libmongohasher.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_id_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libindex_key_validate.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/matcher/libexpressions.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_knobs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libexpression.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsummation.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libexpression_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_factory_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libaggregation_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libexplain_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdependencies.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdocument_value.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libintrusive_counter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/datetime/libdate_time_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_timelib.a -Wl,--no-whole-archive build/fedora/third_party/timelib-2018.01alpha1/libtimelib.a -Wl,--whole-archive build/fedora/mongo/db/pipeline/libfield_path.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/matcher/libpath.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/geo/libgeoparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/geo/libgeometry.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/libs2.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/util/math/libmath.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/util/coding/libcoding.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/strings/libstrings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/base/libbase_s2.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/libfts_query_noop.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libindex_descriptor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libindex_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclientdriver_network.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libthread_pool_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_thread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_tl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libservice_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/base/libsystem_error.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libasync_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_zlib.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_snappy.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libtask_executor_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libconnection_pool_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libegress_tag_closer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libconnection_pool_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclientdriver_minimal.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_asio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/asio-master/libasio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_yaml.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libbackground_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libcounters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libaudit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libtest_commands_enabled.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/bson/libdotted_path_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcommon_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libobject_check.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libcommand_request_response.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libread_concern_args.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libuuid_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase_holder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcollection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libnamespace_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwire_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdbmessage.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libinternal_user_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libconnection_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libdns_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclient_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libauthentication.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libsasl_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libmd5.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libicu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libicu_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_i18n.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libremote_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libmetadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libclient_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libis_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboptime.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time_validator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsigned_logical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_client_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libsharding_catalog_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_clock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libglobal_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_document.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libtime_proof_service.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libindex_names.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libaddress_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthentication_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/mutable/libmutable_bson.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsafe_num.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libaudit_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser_name.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth_rolename.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libread_preference.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libnetwork.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libwinutil.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libfail_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libclock_sources.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libspin_lock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libwrite_unit_of_work.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/idl/libidl_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommand_generic_argument.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha_block_openssl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha1_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha256_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsecure_compare_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/base/libsecure_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsecure_zero_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprocessinfo.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/util/libbson_extract.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/libbase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/murmurhash3/libmurmurhash3.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_pcrecpp.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/fedora/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/fedora/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libquick_exit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_allocator.a -Wl,--no-whole-archive build/fedora/mongo/util/libdebugger.a -Wl,--end-group -lz -lsnappy -lyaml-cpp -lpcre -lpcrecpp -lboost_program_options -lboost_filesystem -lboost_system -lboost_iostreams -ltcmalloc -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl g++ @/tmp/tmpf887cykl.lnk In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/near.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: 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-45/extract/js/src/builtin/Intl.cpp:115: warning: type 'UColAttributeValue' violates the C++ One Definition Rule [-Wodr] 115 | 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-45/extract/js/src/builtin/Intl.cpp:120: note: name 'UCOL_OFF' differs from name 'UCOL_DEFAULT_STRENGTH' defined in another translation unit 120 | 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-45/extract/js/src/builtin/Intl.cpp:106: warning: type 'UColAttribute' violates the C++ One Definition Rule [-Wodr] 106 | 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-45/extract/js/src/builtin/Intl.cpp:107: note: name 'UCOL_ALTERNATE_HANDLING' differs from name 'UCOL_FRENCH_COLLATION' defined in another translation unit 107 | UCOL_ALTERNATE_HANDLING, | src/third_party/icu4c-57.1/source/i18n/unicode/ucol.h:241: note: mismatching definition 241 | UCOL_FRENCH_COLLATION, | g++ -o build/fedora/mongo/db/auth/authz_manager_external_state_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_manager_external_state_local.cpp g++ -o build/fedora/mongo/db/s/sharding_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_statistics.cpp g++ -o build/fedora/mongo/db/repl/drop_pending_collection_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/drop_pending_collection_reaper.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/drop_pending_collection_reaper.h:37, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/drop_pending_collection_reaper.h:37, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/drop_pending_collection_reaper.h:37, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/devnull/devnull_kv_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/devnull/devnull_kv_engine.cpp g++ -o build/fedora/mongo/scripting/scripting_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/scripting/scripting_server.cpp ar rcsTD build/fedora/mongo/scripting/libscripting_server.a build/fedora/mongo/scripting/scripting_server.o Skipping ranlib for thin archive build/fedora/mongo/scripting/libscripting_server.a /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/free_mon/free_mon_storage_gen.h --output build/fedora/mongo/db/free_mon/free_mon_storage_gen.cpp src/mongo/db/free_mon/free_mon_storage.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/free_mon/free_mon_protocol_gen.h --output build/fedora/mongo/db/free_mon/free_mon_protocol_gen.cpp src/mongo/db/free_mon/free_mon_protocol.idl /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/free_mon/free_mon_commands_gen.h --output build/fedora/mongo/db/free_mon/free_mon_commands_gen.cpp src/mongo/db/free_mon/free_mon_commands.idl g++ -o build/fedora/mongo/db/free_mon/free_mon_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/free_mon/free_mon_commands.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/free_mon/free_mon_commands.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/free_mon/free_mon_commands.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/free_mon/free_mon_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/free_mon/free_mon_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/free_mon/free_mon_commands.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/free_mon/free_mon_commands.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/oplog_fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_fetcher.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/oplog_fetcher.h:35, from src/mongo/db/repl/oplog_fetcher.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/oplog_fetcher.h:35, from src/mongo/db/repl/oplog_fetcher.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/oplog_fetcher.h:36, from src/mongo/db/repl/oplog_fetcher.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/check_sharding_index_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/check_sharding_index_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/s/check_sharding_index_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/check_sharding_index_command.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/check_sharding_index_command.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/s/check_sharding_index_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/check_sharding_index_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/check_sharding_index_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/bsonelement_comparator.h:32, from src/mongo/db/s/check_sharding_index_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/check_sharding_index_command.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/working_set_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/working_set_common.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/working_set_common.h:31, from src/mongo/db/exec/working_set_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/working_set_common.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/working_set_common.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/working_set_common.h:31, from src/mongo/db/exec/working_set_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/working_set_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/working_set_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/working_set_common.h:31, from src/mongo/db/exec/working_set_common.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/working_set_common.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/ttl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ttl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/ttl.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ttl.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ttl.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/ttl.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ttl.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ttl.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/ttl.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ttl.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libttl_d.a build/fedora/mongo/db/ttl.o Skipping ranlib for thin archive build/fedora/mongo/db/libttl_d.a g++ -o build/fedora/mongo/db/command_can_run_here.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/command_can_run_here.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/command_can_run_here.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/command_can_run_here.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/command_can_run_here.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/command_can_run_here.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/command_can_run_here.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/command_can_run_here.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/command_can_run_here.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/migration_destination_manager_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_destination_manager_legacy_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/sharding_config_optime_gossip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_config_optime_gossip.cpp g++ -o build/fedora/mongo/db/s/balancer/migration_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/migration_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/balancer/migration_manager.h:36, from src/mongo/db/s/balancer/migration_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/sharded_connection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharded_connection_info.cpp g++ -o build/fedora/mongo/db/s/split_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/split_vector.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/db/bson/dotted_path_support.h:34, from src/mongo/db/s/split_vector.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_vector.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_vector.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/db/bson/dotted_path_support.h:34, from src/mongo/db/s/split_vector.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_vector.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_vector.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/db/bson/dotted_path_support.h:34, from src/mongo/db/s/split_vector.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_vector.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/copydb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/copydb.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/client/sasl_client_authenticate.h:31, from src/mongo/db/commands/copydb.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/copydb.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/copydb.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/client/sasl_client_authenticate.h:31, from src/mongo/db/commands/copydb.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/copydb.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/copydb.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/client/sasl_client_authenticate.h:31, from src/mongo/db/commands/copydb.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/copydb.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/commands/copydb.cpp:32: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/catalog/health_log_gen.h --output build/fedora/mongo/db/catalog/health_log_gen.cpp src/mongo/db/catalog/health_log.idl g++ -o build/fedora/mongo/db/catalog/health_log_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/catalog/health_log_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/catalog/health_log_gen.h:16, from build/fedora/mongo/db/catalog/health_log_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/catalog/health_log_gen.h:16, from build/fedora/mongo/db/catalog/health_log_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/third_party/mozjs-45/extract/js/src/jit/IonBuilder.cpp: In member function 'computeHeapType': lto1: warning: function may return address of local variable [-Wreturn-local-addr] src/third_party/mozjs-45/extract/js/src/jit/IonBuilder.cpp:9259:22: note: declared here 9259 | TemporaryTypeSet empty; | ^ g++ -o build/fedora/mongo/db/s/sharding_state_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_state_recovery.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/sharding_state_recovery.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_state_recovery.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_state_recovery.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/sharding_state_recovery.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_state_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_state_recovery.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_state_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/sharding_state_recovery.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_state_recovery.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/views/durable_view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/views/durable_view_catalog.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/views/durable_view_catalog.h:35, from src/mongo/db/views/durable_view_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/views/durable_view_catalog.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/views/durable_view_catalog.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/views/durable_view_catalog.h:35, from src/mongo/db/views/durable_view_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/views/durable_view_catalog.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/views/durable_view_catalog.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/views/durable_view_catalog.h:35, from src/mongo/db/views/durable_view_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/views/durable_view_catalog.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/matcher/expression_where.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_where.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where.h:31, from src/mongo/db/matcher/expression_where.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where.h:31, from src/mongo/db/matcher/expression_where.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where.h:31, from src/mongo/db/matcher/expression_where.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/expression_where.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: 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: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_where_base.h:31, from src/mongo/db/matcher/expression_where.h:31, from src/mongo/db/matcher/expression_where.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:106:21: warning: redundant move in return statement [-Wredundant-move] 106 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where.cpp:106:21: 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:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/logical_session_cache_factory_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/logical_session_cache_factory_mongod.cpp ar rcsTD build/fedora/mongo/db/liblogical_session_cache_factory_mongod.a build/fedora/mongo/db/logical_session_cache_factory_mongod.o Skipping ranlib for thin archive build/fedora/mongo/db/liblogical_session_cache_factory_mongod.a g++ -o build/fedora/mongo/db/storage/mmap_v1/dur_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/dur_recovery_unit.cpp g++ -o build/fedora/mongo/db/storage/oplog_hack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/oplog_hack.cpp ar rcsTD build/fedora/mongo/db/storage/liboplog_hack.a build/fedora/mongo/db/storage/oplog_hack.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/liboplog_hack.a g++ -o build/fedora/mongo/db/repl/data_replicator_external_state_initial_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/data_replicator_external_state.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/data_replicator_external_state.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/data_replicator_external_state.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:31, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libdata_replicator_external_state_initial_sync.a build/fedora/mongo/db/repl/data_replicator_external_state_initial_sync.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libdata_replicator_external_state_initial_sync.a g++ -o build/fedora/mongo/db/s/clone_catalog_data_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/clone_catalog_data_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_catalog_data_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_catalog_data_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/clone_catalog_data_command.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_catalog_data_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_catalog_data_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/clone_catalog_data_command.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_catalog_data_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/cached_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/cached_plan.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/exec/cached_plan.h:37, from src/mongo/db/exec/cached_plan.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/exec/cached_plan.h:37, from src/mongo/db/exec/cached_plan.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/cached_plan.h:34, from src/mongo/db/exec/cached_plan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/exec/cached_plan.h:37, from src/mongo/db/exec/cached_plan.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/cached_plan.h:37, from src/mongo/db/exec/cached_plan.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/cached_plan.h:34, from src/mongo/db/exec/cached_plan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/cached_plan.h:37, from src/mongo/db/exec/cached_plan.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/range_arithmetic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/range_arithmetic.cpp ar rcsTD build/fedora/mongo/db/librange_arithmetic.a build/fedora/mongo/db/range_arithmetic.o Skipping ranlib for thin archive build/fedora/mongo/db/librange_arithmetic.a g++ -o build/fedora/mongo/db/query/plan_ranker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/plan_ranker.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_ranker.h:39, from src/mongo/db/query/plan_ranker.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_ranker.h:39, from src/mongo/db/query/plan_ranker.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/query/plan_ranker.h:36, from src/mongo/db/query/plan_ranker.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_ranker.h:39, from src/mongo/db/query/plan_ranker.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_ranker.h:39, from src/mongo/db/query/plan_ranker.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/query/plan_ranker.h:36, from src/mongo/db/query/plan_ranker.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_ranker.h:39, from src/mongo/db/query/plan_ranker.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/kv/kv_database_catalog_entry_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/kv/kv_database_catalog_entry_base.cpp g++ -o build/fedora/mongo/db/repl/bgsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/bgsync.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/bgsync.h:35, from src/mongo/db/repl/bgsync.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/bgsync.h:35, from src/mongo/db/repl/bgsync.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/bgsync.h:35, from src/mongo/db/repl/bgsync.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/bgsync.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libbgsync.a build/fedora/mongo/db/repl/bgsync.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libbgsync.a g++ -o build/fedora/mongo/db/keys_collection_client_direct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/keys_collection_client_direct.cpp g++ -o build/fedora/mongo/db/storage/storage_file_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_file_util.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/repl/replication_consistency_markers_gen.h --output build/fedora/mongo/db/repl/replication_consistency_markers_gen.cpp src/mongo/db/repl/replication_consistency_markers.idl g++ -o build/fedora/mongo/db/repl/replication_consistency_markers_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/repl/replication_consistency_markers_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/replication_consistency_markers_gen.h:16, from build/fedora/mongo/db/repl/replication_consistency_markers_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/replication_consistency_markers_gen.h:16, from build/fedora/mongo/db/repl/replication_consistency_markers_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libreplication_consistency_markers_idl.a build/fedora/mongo/db/repl/replication_consistency_markers_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libreplication_consistency_markers_idl.a g++ -o build/fedora/mongo/db/exec/group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/group.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/exec/group.h:31, from src/mongo/db/exec/group.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/group.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/group.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/exec/group.h:31, from src/mongo/db/exec/group.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/group.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/group.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/exec/group.h:31, from src/mongo/db/exec/group.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/group.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/session_txn_record_gen.h --output build/fedora/mongo/db/session_txn_record_gen.cpp src/mongo/db/session_txn_record.idl g++ -o build/fedora/mongo/db/read_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/read_concern.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/read_concern.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/read_concern.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/read_concern.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/read_concern.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/read_concern.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/read_concern.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/read_concern.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/replication_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_info.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/repl/replication_info.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/repl/replication_info.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/db/repl/replication_info.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/repl/replication_info.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/repl/replication_info.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/db/repl/replication_info.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/auth/sasl_mechanism_registry.h:37, from src/mongo/db/repl/replication_info.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libreplication_info.a build/fedora/mongo/db/repl/replication_info.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libreplication_info.a g++ -o build/fedora/mongo/db/ops/find_and_modify_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/find_and_modify_result.cpp g++ -o build/fedora/mongo/db/s/shardsvr_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/shardsvr_shard_collection.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/s/shardsvr_shard_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shardsvr_shard_collection.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shardsvr_shard_collection.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/s/shardsvr_shard_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shardsvr_shard_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shardsvr_shard_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/s/shardsvr_shard_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shardsvr_shard_collection.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/split_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/split_chunk.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/s/split_chunk.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_chunk.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_chunk.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/s/split_chunk.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_chunk.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_chunk.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/s/split_chunk.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/split_chunk.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/storage_engine_lock_file_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_engine_lock_file_posix.cpp g++ -o build/fedora/mongo/db/commands/txn_cmds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/txn_cmds.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/txn_cmds.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/txn_cmds.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/txn_cmds.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/txn_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/txn_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/txn_cmds.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/txn_cmds.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/s/add_shard_cmd_gen.h --output build/fedora/mongo/db/s/add_shard_cmd_gen.cpp src/mongo/db/s/add_shard_cmd.idl g++ -o build/fedora/mongo/db/s/type_shard_identity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/type_shard_identity.cpp g++ -o build/fedora/mongo/db/s/add_shard_cmd_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/s/add_shard_cmd_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/s/add_shard_cmd_gen.h:16, from build/fedora/mongo/db/s/add_shard_cmd_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/s/add_shard_cmd_gen.h:16, from build/fedora/mongo/db/s/add_shard_cmd_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/s/libtype_shard_identity.a build/fedora/mongo/db/s/add_shard_cmd_gen.o build/fedora/mongo/db/s/type_shard_identity.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libtype_shard_identity.a g++ -o build/fedora/mongo/db/commands/geo_near_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/geo_near_cmd.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/geo_near_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/geo_near_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/geo_near_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/geo_near_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/geo_near_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/geo_near_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/geo_near_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/geo_near_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/op_observer_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/op_observer_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UUID, mongo::StringMapTraits>': src/mongo/db/catalog/namespace_uuid_cache.h:86:23: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/container/detail/copy_move_algo.hpp:38, from /usr/include/boost/container/detail/advanced_insert_int.hpp:28, from /usr/include/boost/container/vector.hpp:32, from /usr/include/boost/container/detail/flat_tree.hpp:30, from /usr/include/boost/container/flat_set.hpp:29, from src/mongo/bson/bson_comparator_interface_base.h:31, from src/mongo/bson/bsonobj_comparator_interface.h:31, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/op_observer_impl.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/repl/sync_source_resolver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/sync_source_resolver.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/sync_source_resolver.h:35, from src/mongo/db/repl/sync_source_resolver.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/sync_source_resolver.h:35, from src/mongo/db/repl/sync_source_resolver.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/client/fetcher.h:39, from src/mongo/db/repl/sync_source_resolver.h:35, from src/mongo/db/repl/sync_source_resolver.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/sync_source_resolver.h:35, from src/mongo/db/repl/sync_source_resolver.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/sync_source_resolver.h:35, from src/mongo/db/repl/sync_source_resolver.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/client/fetcher.h:39, from src/mongo/db/repl/sync_source_resolver.h:35, from src/mongo/db/repl/sync_source_resolver.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/sync_source_resolver.h:35, from src/mongo/db/repl/sync_source_resolver.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/repl/sync_source_resolver.h:33, from src/mongo/db/repl/sync_source_resolver.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/s/collection_range_deleter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/collection_range_deleter.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_range_deleter.h:33, from src/mongo/db/s/collection_range_deleter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_range_deleter.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_range_deleter.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_range_deleter.h:33, from src/mongo/db/s/collection_range_deleter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_range_deleter.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_range_deleter.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_range_deleter.h:33, from src/mongo/db/s/collection_range_deleter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_range_deleter.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/vote_requester.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/vote_requester.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/vote_requester.h:35, from src/mongo/db/repl/vote_requester.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/devnull/devnull_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/devnull/devnull_init.cpp g++ -o build/fedora/mongo/db/s/migration_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_source_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_sharding_runtime.h:32, from src/mongo/db/s/migration_source_manager.h:34, from src/mongo/db/s/migration_source_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_source_manager.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_source_manager.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_sharding_runtime.h:32, from src/mongo/db/s/migration_source_manager.h:34, from src/mongo/db/s/migration_source_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_source_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_source_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_sharding_runtime.h:32, from src/mongo/db/s/migration_source_manager.h:34, from src/mongo/db/s/migration_source_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_source_manager.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/repl_set_config_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_config_checks.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/db/repl/repl_set_config.h:36, from src/mongo/db/repl/repl_set_config_checks.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/replication_coordinator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_coordinator_external_state_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:34, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:34, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:34, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:35, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/mongod_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/db/mongod_options_init.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/ops/single_write_result_gen.h --output build/fedora/mongo/db/ops/single_write_result_gen.cpp src/mongo/db/ops/single_write_result.idl g++ -o build/fedora/mongo/db/service_entry_point_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/service_entry_point_common.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/transport/service_entry_point.h:32, from src/mongo/transport/service_entry_point_impl.h:37, from src/mongo/db/service_entry_point_common.h:31, from src/mongo/db/service_entry_point_common.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/transport/service_entry_point.h:32, from src/mongo/transport/service_entry_point_impl.h:37, from src/mongo/db/service_entry_point_common.h:31, from src/mongo/db/service_entry_point_common.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, int, mongo::StringMapTraits>': src/mongo/db/service_entry_point_common.cpp:111:22: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libservice_entry_point_common.a build/fedora/mongo/db/service_entry_point_common.o Skipping ranlib for thin archive build/fedora/mongo/db/libservice_entry_point_common.a g++ -o build/fedora/mongo/db/repl/oplog_interface_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_interface_remote.cpp ar rcsTD build/fedora/mongo/db/repl/liboplog_interface_remote.a build/fedora/mongo/db/repl/oplog_interface_remote.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_interface_remote.a g++ -o build/fedora/mongo/db/s/config/sharding_catalog_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/sharding_catalog_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/migration_destination_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_destination_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/migration_destination_manager.h:35, from src/mongo/db/s/migration_destination_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/s/migration_destination_manager.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/s/migration_destination_manager.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/migration_destination_manager.h:35, from src/mongo/db/s/migration_destination_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/s/migration_destination_manager.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/s/migration_destination_manager.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/migration_destination_manager.h:35, from src/mongo/db/s/migration_destination_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/s/migration_destination_manager.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/storage_engine_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_engine_metadata.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/storage/storage_engine_metadata.h:36, from src/mongo/db/storage/storage_engine_metadata.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/s/migration_chunk_cloner_source_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/copydb_start_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/copydb_start_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/copydb_start_commands.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/copydb_start_commands.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/commands/copydb_start_commands.h:29, from src/mongo/db/commands/copydb_start_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/copydb_start_commands.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:185:23, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:131: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:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:129: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/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/copydb_start_commands.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/commands/copydb_start_commands.h:29, from src/mongo/db/commands/copydb_start_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/copydb_start_commands.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/repl/apply_ops_gen.h --output build/fedora/mongo/db/repl/apply_ops_gen.cpp src/mongo/db/repl/apply_ops.idl g++ -o build/fedora/mongo/db/repl/apply_ops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/apply_ops.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/apply_ops.h:32, from src/mongo/db/repl/apply_ops.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/apply_ops.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/apply_ops.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/apply_ops.h:32, from src/mongo/db/repl/apply_ops.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/apply_ops.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/apply_ops.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/apply_ops.h:32, from src/mongo/db/repl/apply_ops.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/apply_ops.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/mmap_v1/record_access_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/record_access_tracker.cpp g++ -o build/fedora/mongo/db/commands/fsync_locked.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/fsync_locked.cpp g++ -o build/fedora/mongo/db/s/get_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/get_shard_version_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/get_shard_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/get_shard_version_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/get_shard_version_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/get_shard_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/get_shard_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/get_shard_version_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/get_database_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/get_database_version_command.cpp 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 file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/get_database_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/get_database_version_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/get_database_version_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/get_database_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/get_database_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/get_database_version_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/replication_consistency_markers_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_consistency_markers_impl.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.h:32, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.h:32, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/and_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/and_sorted.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/and_sorted.h:36, from src/mongo/db/exec/and_sorted.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/and_sorted.h:36, from src/mongo/db/exec/and_sorted.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/and_sorted.h:34, from src/mongo/db/exec/and_sorted.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/journal_latency_test_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/list_collections.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/list_collections.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/commands/list_collections.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/list_collections.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/list_collections.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/commands/list_collections.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/list_collections.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/list_collections.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/commands/list_collections.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/list_collections.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/restart_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/restart_catalog_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/catalog/catalog_control.h:31, from src/mongo/db/commands/restart_catalog_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/restart_catalog_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/restart_catalog_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/catalog/catalog_control.h:31, from src/mongo/db/commands/restart_catalog_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/restart_catalog_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/restart_catalog_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/catalog/catalog_control.h:31, from src/mongo/db/commands/restart_catalog_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/restart_catalog_command.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/parallel_collection_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/parallel_collection_scan.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/parallel_collection_scan.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/parallel_collection_scan.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/parallel_collection_scan.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/parallel_collection_scan.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/parallel_collection_scan.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/parallel_collection_scan.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/parallel_collection_scan.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/parallel_collection_scan.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/multi_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/multi_iterator.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_iterator.h:34, from src/mongo/db/exec/multi_iterator.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/active_migrations_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/active_migrations_registry.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/s/request_types/move_chunk_request.h:33, from src/mongo/db/s/active_migrations_registry.h:35, from src/mongo/db/s/active_migrations_registry.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/active_migrations_registry.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/active_migrations_registry.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/s/request_types/move_chunk_request.h:33, from src/mongo/db/s/active_migrations_registry.h:35, from src/mongo/db/s/active_migrations_registry.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/active_migrations_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/active_migrations_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/s/request_types/move_chunk_request.h:33, from src/mongo/db/s/active_migrations_registry.h:35, from src/mongo/db/s/active_migrations_registry.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/active_migrations_registry.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/catalog/collection_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/collection_options.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/catalog/collection_options.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/catalog/collection_options.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_options.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/catalog/collection_options.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/catalog/collection_options.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_options.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/catalog/collection_options.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/catalog/collection_options.h:35, from src/mongo/db/catalog/collection_options.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/catalog/libcollection_options.a build/fedora/mongo/db/catalog/collection_options.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libcollection_options.a g++ -o build/fedora/mongo/db/exec/stagedebug_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/stagedebug_cmd.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/exec/stagedebug_cmd.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/exec/stagedebug_cmd.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/exec/stagedebug_cmd.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/exec/stagedebug_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libkeys_collection_client_direct.a build/fedora/mongo/db/keys_collection_client_direct.o Skipping ranlib for thin archive build/fedora/mongo/db/libkeys_collection_client_direct.a g++ -o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:34, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:34, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:34, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:41: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:149:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 149 | memset(this, 0, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:158:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 158 | memcpy(this, &e, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:33, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/commands/apply_ops_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/apply_ops_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/apply_ops_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/apply_ops_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/apply_ops_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/apply_ops_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/apply_ops_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/apply_ops_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/apply_ops_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/storage/devnull/libstorage_devnull.a build/fedora/mongo/db/storage/devnull/devnull_init.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/devnull/libstorage_devnull.a g++ -o build/fedora/mongo/db/session_txn_record_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/session_txn_record_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/session_txn_record_gen.h:16, from build/fedora/mongo/db/session_txn_record_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/session_txn_record_gen.h:16, from build/fedora/mongo/db/session_txn_record_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/current_op.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/current_op_common.h:33, from src/mongo/db/commands/current_op.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/replication_coordinator_impl_elect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_coordinator_impl_elect.cpp In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:73, inlined from 'operator=.isra' at src/mongo/util/unordered_fast_key_table.h:174:13: src/mongo/util/unordered_fast_key_table.h:164:35: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | ^ src/mongo/util/unordered_fast_key_table.h: In member function 'operator=.isra': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/repl/elect_cmd_runner.h:34, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/repl/elect_cmd_runner.h:34, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/repl/elect_cmd_runner.h:34, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/feature_compatibility_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/feature_compatibility_version.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/feature_compatibility_version.h:33, from src/mongo/db/commands/feature_compatibility_version.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/commands/feature_compatibility_version.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/commands/feature_compatibility_version.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/feature_compatibility_version.h:33, from src/mongo/db/commands/feature_compatibility_version.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/commands/feature_compatibility_version.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/commands/feature_compatibility_version.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/feature_compatibility_version.h:33, from src/mongo/db/commands/feature_compatibility_version.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/commands/feature_compatibility_version.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/commands/feature_compatibility_version.h:31, from src/mongo/db/commands/feature_compatibility_version.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/commands/libmongod_fcv.a build/fedora/mongo/db/commands/feature_compatibility_version.o Install file: "build/fedora/mongo/mongo" as "mongo" Skipping ranlib for thin archive build/fedora/mongo/db/commands/libmongod_fcv.a g++ -o build/fedora/mongo/db/free_mon/free_mon_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_mongod.cpp g++ -o build/fedora/mongo/db/commands/validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/validate.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/validate.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/validate.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/validate.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/validate.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/validate.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/validate.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/validate.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_registry.h:35, from src/mongo/db/free_mon/free_mon_mongod.h:31, from src/mongo/db/free_mon/free_mon_mongod.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/validate.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/roll_back_local_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/roll_back_local_operations.cpp g++ -o build/fedora/mongo/db/repl/scatter_gather_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/scatter_gather_runner.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/btree/key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/btree/key.cpp g++ -o build/fedora/mongo/db/prefetch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/prefetch.cpp g++ -o build/fedora/mongo/db/s/config/sharding_catalog_manager_collection_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/prefetch.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/prefetch.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/prefetch.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/prefetch.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/prefetch.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/prefetch.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/prefetch.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/prefetch.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libprefetch.a build/fedora/mongo/db/prefetch.o Skipping ranlib for thin archive build/fedora/mongo/db/libprefetch.a g++ -o build/fedora/mongo/db/exec/shard_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/shard_filter.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/filter.h:32, from src/mongo/db/exec/shard_filter.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/filter.h:32, from src/mongo/db/exec/shard_filter.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/shard_filter.h:31, from src/mongo/db/exec/shard_filter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/initialize_snmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/initialize_snmp.cpp g++ -o build/fedora/mongo/db/ops/write_ops_retryability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/write_ops_retryability.cpp g++ -o build/fedora/mongo/db/exec/queued_data_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/queued_data_stage.cpp g++ -o build/fedora/mongo/db/commands/list_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/list_indexes.cpp g++ -o build/fedora/mongo/db/repl/replication_coordinator_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_coordinator_impl.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/list_indexes.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/list_indexes.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/list_indexes.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/list_indexes.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/replication_coordinator_impl.h:36, from src/mongo/db/repl/replication_coordinator_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/list_indexes.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 In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/list_indexes.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/replication_coordinator_impl.h:36, from src/mongo/db/repl/replication_coordinator_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/list_indexes.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/ensure_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/ensure_sorted.cpp g++ -o build/fedora/mongo/db/storage/kv/kv_collection_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_catalog_entry.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.h:35, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_catalog_entry.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.h:35, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_catalog_entry.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.h:35, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/kv/kv_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/kv/kv_catalog.cpp g++ -o build/fedora/mongo/db/s/balancer/type_migration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/type_migration.cpp g++ -o build/fedora/mongo/db/commands/whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/whats_my_uri_cmd.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/storage/kv/kv_catalog.h:37, from src/mongo/db/storage/kv/kv_catalog.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< (mongo::StringData const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::KVCatalog::_findEntry(mongo::OperationContext*, mongo::StringData, mongo::RecordId*) const::{lambda()#1}::operator()() const' at src/mongo/db/storage/kv/kv_catalog.cpp:454:9, inlined from 'mongo::invariantWithContextAndLocation(bool const&, char const*, mongo::KVCatalog::_findEntry(mongo::OperationContext*, mongo::StringData, mongo::RecordId*) const::{lambda()#1}&&, char const*, unsigned int)void' at src/mongo/util/invariant.h:94:40, inlined from 'mongo::KVCatalog::_findEntry(mongo::OperationContext*, mongo::StringData, mongo::RecordId*) const' at src/mongo/db/storage/kv/kv_catalog.cpp:454:9: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 483] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/whats_my_uri_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/whats_my_uri_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/whats_my_uri_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/whats_my_uri_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/whats_my_uri_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/whats_my_uri_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/storage/kv/libkv_engine_core.a build/fedora/mongo/db/storage/kv/kv_catalog.o build/fedora/mongo/db/storage/kv/kv_collection_catalog_entry.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/kv/libkv_engine_core.a g++ -o build/fedora/mongo/db/repl/reporter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/reporter.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/whats_my_uri_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libreporter.a build/fedora/mongo/db/repl/reporter.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libreporter.a g++ -o build/fedora/mongo/db/commands/sleep_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/sleep_command.cpp g++ -o build/fedora/mongo/db/exec/update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/update.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/sleep_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/sleep_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/sleep_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(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:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/sleep_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/sleep_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/sleep_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/sleep_command.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/update.h:32, from src/mongo/db/exec/update.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/mmap_v1/catalog/index_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/catalog/index_details.cpp g++ -o build/fedora/mongo/db/concurrency/deferred_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/concurrency/deferred_writer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.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 g++ -o build/fedora/mongo/db/s/collection_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/collection_metadata.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/concurrency/deferred_writer.cpp: In member function 'mongo::StatusWith > mongo::DeferredWriter::_getCollection(mongo::OperationContext*)': src/mongo/db/concurrency/deferred_writer.cpp:92:21: warning: redundant move in return statement [-Wredundant-move] 92 | return std::move(agc); | ~~~~~~~~~^~~~~ src/mongo/db/concurrency/deferred_writer.cpp:92:21: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/operation_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/concurrency/deferred_writer.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/operation_sharding_state.h:34, from src/mongo/db/s/operation_sharding_state.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/namespace_string.h:36, from src/mongo/db/s/operation_sharding_state.h:34, from src/mongo/db/s/operation_sharding_state.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/free_mon/free_mon_storage_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/free_mon/free_mon_storage_gen.cpp g++ -o build/fedora/mongo/db/repair_database_and_check_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repair_database_and_check_version.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/create_collection.h:32, from src/mongo/db/repair_database_and_check_version.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/free_mon/free_mon_storage_gen.h:16, from build/fedora/mongo/db/free_mon/free_mon_storage_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/create_collection.h:32, from src/mongo/db/repair_database_and_check_version.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/free_mon/free_mon_storage_gen.h:16, from build/fedora/mongo/db/free_mon/free_mon_storage_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/create_collection.h:32, from src/mongo/db/repair_database_and_check_version.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::pair >, std::vector > >, mongo::StringMapTraits>': src/mongo/db/repair_database_and_check_version.cpp:257:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repair_database_and_check_version.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_base.h:34, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h:33, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_base.h:34, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h:33, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_base.h:34, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.h:33, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.h:31, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.h:31, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.h:31, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.h:31, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.h:31, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.h:31, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_simple.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.h:33, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.h:33, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.h:33, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_base.h:34, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_base.h:34, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_base.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_base.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/record_store_v1_base.h:34, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/touch_pages.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/touch_pages.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_capped.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_capped.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/mmap_v1/commit_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/commit_notifier.cpp g++ -o build/fedora/mongo/db/catalog/drop_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/drop_database.cpp ar rcsTD build/fedora/mongo/db/storage/mmap_v1/librecord_store_v1.a build/fedora/mongo/db/storage/mmap_v1/record_store_v1_base.o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_capped.o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_simple.o build/fedora/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.o build/fedora/mongo/db/storage/mmap_v1/touch_pages.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/librecord_store_v1.a g++ -o build/fedora/mongo/db/exec/working_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/working_set.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/drop_database.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/drop_database.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/drop_database.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/drop_database.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/drop_database.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/drop_database.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/drop_database.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/abstract_async_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/abstract_async_component.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/repl/abstract_async_component.h:38, from src/mongo/db/repl/abstract_async_component.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< , std::allocator > >(std::__cxx11::basic_string, std::allocator > const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::repl::AbstractAsyncComponent::_scheduleWorkAndSaveHandle_inlock(std::function const&, mongo::executor::TaskExecutor::CallbackHandle*, std::__cxx11::basic_string, std::allocator > const&)' at src/mongo/db/repl/abstract_async_component.cpp:178:94: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 488] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/repl/oplogreader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplogreader.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/drop_database.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/free_mon/free_mon_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_status.cpp g++ -o build/fedora/mongo/db/free_mon/free_mon_protocol_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/free_mon/free_mon_protocol_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/free_mon/free_mon_status.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/free_mon/free_mon_status.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/free_mon/free_mon_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/free_mon/free_mon_status.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/free_mon/free_mon_status.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/free_mon/free_mon_protocol_gen.h:16, from build/fedora/mongo/db/free_mon/free_mon_protocol_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/free_mon/free_mon_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/free_mon/free_mon_protocol_gen.h:16, from build/fedora/mongo/db/free_mon/free_mon_protocol_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/free_mon/free_mon_status.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/config/configsvr_add_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_add_shard_command.cpp g++ -o build/fedora/mongo/db/s/sharding_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_server_status.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/s/sharding_server_status.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/s/sharding_server_status.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/s/sharding_server_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/s/sharding_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/s/sharding_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/s/sharding_server_status.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/s/sharding_server_status.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/split_vector_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/split_vector_command.cpp g++ -o build/fedora/mongo/db/exec/and_hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/and_hash.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/and_hash.h:35, from src/mongo/db/exec/and_hash.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/and_hash.h:35, from src/mongo/db/exec/and_hash.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/and_hash.h:33, from src/mongo/db/exec/and_hash.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_vector_command.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_vector_command.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/split_vector_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_vector_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_vector_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/split_vector_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/concurrency/libdeferred_writer.a build/fedora/mongo/db/concurrency/deferred_writer.o Skipping ranlib for thin archive build/fedora/mongo/db/concurrency/libdeferred_writer.a g++ -o build/fedora/mongo/db/commands/driverHelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/driverHelpers.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_vector_command.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/driverHelpers.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/driverHelpers.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/driverHelpers.cpp:44: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/driverHelpers.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/driverHelpers.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 g++ -o build/fedora/mongo/db/commands/mr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/mr.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/driverHelpers.cpp:44: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/driverHelpers.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/mr.h:36, from src/mongo/db/commands/mr.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ g++ -o build/fedora/mongo/db/commands/user_management_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/user_management_commands.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/user_management_commands.cpp:61: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/user_management_commands.cpp:61: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/commands/user_management_commands.h:34, from src/mongo/db/commands/user_management_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/user_management_commands.cpp:61: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/user_management_commands.cpp:61: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/commands/user_management_commands.h:34, from src/mongo/db/commands/user_management_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/commands/mr.h:37, from src/mongo/db/commands/mr.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/user_management_commands.cpp:61: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/dbcommands_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/dbcommands_d.cpp g++ -o build/fedora/mongo/db/commands/clone_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/clone_collection.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/commands/clone_collection.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/dbcommands_d.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/clone_collection.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/clone_collection.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands_d.cpp:55: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/commands/clone_collection.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands_d.cpp:55: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/dbcommands_d.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/clone_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands_d.cpp:55: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/clone_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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands_d.cpp:55: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/commands/clone_collection.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/dbcommands_d.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/clone_collection.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands_d.cpp:55: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/do_txn_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/do_txn_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/do_txn_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/do_txn_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/do_txn_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/do_txn_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/do_txn_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/do_txn_cmd.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/eval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/eval.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/eval.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/eval.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/commands/eval.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/eval.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/do_txn_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/eval.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/db/commands/eval.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/compact.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/compact.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/eval.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/compact.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/compact.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/compact.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/compact.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/compact.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 In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/compact.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/compact.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/oplog_note.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/oplog_note.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/oplog_note.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/oplog_note.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/oplog_note.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/oplog_note.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/oplog_note.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/oplog_note.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/compact.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/dbhash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/dbhash.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/oplog_note.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/set_feature_compatibility_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/set_feature_compatibility_version_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/set_feature_compatibility_version_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/set_feature_compatibility_version_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/dbhash.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/catalog/collection.h:35, from src/mongo/db/commands/dbhash.cpp:39: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/resize_oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/resize_oplog.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/resize_oplog.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/resize_oplog.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/resize_oplog.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/resize_oplog.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/resize_oplog.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/resize_oplog.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/resize_oplog.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/invalidate_view_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/invalidate_view_catalog_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/resize_oplog.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/oplog_application_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/oplog_application_checks.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/oplog_application_checks.cpp:30: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/oplog_application_checks.cpp:30: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/oplog_application_checks.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/oplog_application_checks.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/oplog_application_checks.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 g++ -o build/fedora/mongo/db/commands/haystack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/haystack.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/oplog_application_checks.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/bson/util/bson_check.h:62:43: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/haystack.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/haystack.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/haystack.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/haystack.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/haystack.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/haystack.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/bson/util/bson_check.h:33, from src/mongo/db/commands/oplog_application_checks.cpp:30: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/haystack.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/util/bson_check.h:31, from src/mongo/db/commands/oplog_application_checks.cpp:30: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/commands/cpuload.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/cpuload.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/haystack.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/cpuload.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/cpuload.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/cpuload.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/cpuload.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/cpuload.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 g++ -o build/fedora/mongo/db/commands/group_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/group_cmd.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/cpuload.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/cpuload.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/group_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/group_cmd.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/group_cmd.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/group_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/group_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/collection_to_capped.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/collection_to_capped.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/group_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/group_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/collection_to_capped.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/collection_to_capped.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/commands/collection_to_capped.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/collection_to_capped.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/collection_to_capped.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/commands/collection_to_capped.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/group_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/bson/util/bson_extract.h:33, from src/mongo/db/commands/group_cmd.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61, inlined from 'mongo::BSONElement::checkAndGetStringData() const' at src/mongo/bson/bsonelement.h:112:19, inlined from 'mongo::OpMsgRequest::getDatabase() const' at src/mongo/rpc/op_msg.h:139:46, inlined from 'mongo::(anonymous namespace)::GroupCommand::explain(mongo::OperationContext*, mongo::OpMsgRequest const&, mongo::ExplainOptions::Verbosity, mongo::BSONObjBuilder*) const' at src/mongo/db/commands/group_cmd.cpp:124:49: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/collection_to_capped.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/top_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/top_command.cpp g++ -o build/fedora/mongo/db/commands/snapshot_management.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/snapshot_management.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/top_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/top_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/top_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/top_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/top_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/top_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/snapshot_management.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/snapshot_management.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/commands/snapshot_management.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/snapshot_management.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/snapshot_management.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/commands/snapshot_management.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/top_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/snapshot_management.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/shutdown_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/shutdown_d.cpp /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/repl/dbcheck_gen.h --output build/fedora/mongo/db/repl/dbcheck_gen.cpp src/mongo/db/repl/dbcheck.idl g++ -o build/fedora/mongo/db/commands/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/dbcheck.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/shutdown.h:33, from src/mongo/db/commands/shutdown_d.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/shutdown.h:33, from src/mongo/db/commands/shutdown_d.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/shutdown.h:32, from src/mongo/db/commands/shutdown_d.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/shutdown.h:33, from src/mongo/db/commands/shutdown_d.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/shutdown.h:33, from src/mongo/db/commands/shutdown_d.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands/shutdown.h:32, from src/mongo/db/commands/shutdown_d.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/dbcheck.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/dbcheck.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/dbcheck.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/dbcheck.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/dbcheck.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/dbcheck.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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/shutdown.h:33, from src/mongo/db/commands/shutdown_d.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/dbcheck.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/clone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/clone.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/clone.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/clone.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/clone.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/clone.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/clone.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/clone.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/dbcheck.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/clone.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/commands/clone.cpp:32: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/commands/touch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/touch.cpp g++ -o build/fedora/mongo/db/storage/kv/kv_database_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/kv/kv_database_catalog_entry.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/touch.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/touch.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/touch.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/touch.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/storage/kv/kv_database_catalog_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/touch.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/touch.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/commands/touch.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/storage/kv/libkv_database_catalog_entry_core.a build/fedora/mongo/db/storage/kv/kv_database_catalog_entry_base.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/kv/libkv_database_catalog_entry_core.a g++ -o build/fedora/mongo/db/s/shard_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/shard_server_catalog_cache_loader.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/touch.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/commands/libmongod.a build/fedora/mongo/db/commands/apply_ops_cmd.o build/fedora/mongo/db/commands/clone.o build/fedora/mongo/db/commands/clone_collection.o build/fedora/mongo/db/commands/collection_to_capped.o build/fedora/mongo/db/commands/compact.o build/fedora/mongo/db/commands/copydb.o build/fedora/mongo/db/commands/copydb_start_commands.o build/fedora/mongo/db/commands/cpuload.o build/fedora/mongo/db/commands/dbcheck.o build/fedora/mongo/db/commands/dbcommands_d.o build/fedora/mongo/db/commands/dbhash.o build/fedora/mongo/db/commands/do_txn_cmd.o build/fedora/mongo/db/commands/driverHelpers.o build/fedora/mongo/db/commands/eval.o build/fedora/mongo/db/commands/group_cmd.o build/fedora/mongo/db/commands/haystack.o build/fedora/mongo/db/commands/invalidate_view_catalog_command.o build/fedora/mongo/db/commands/mr.o build/fedora/mongo/db/commands/oplog_application_checks.o build/fedora/mongo/db/commands/oplog_note.o build/fedora/mongo/db/commands/parallel_collection_scan.o build/fedora/mongo/db/commands/resize_oplog.o build/fedora/mongo/db/commands/restart_catalog_command.o build/fedora/mongo/db/commands/set_feature_compatibility_version_command.o build/fedora/mongo/db/commands/shutdown_d.o build/fedora/mongo/db/commands/snapshot_management.o build/fedora/mongo/db/commands/top_command.o build/fedora/mongo/db/commands/touch.o build/fedora/mongo/db/commands/txn_cmds.o build/fedora/mongo/db/commands/user_management_commands.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libmongod.a g++ -o build/fedora/mongo/db/storage/index_entry_comparison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/index_entry_comparison.cpp ar rcsTD build/fedora/mongo/db/storage/libindex_entry_comparison.a build/fedora/mongo/db/storage/index_entry_comparison.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libindex_entry_comparison.a g++ -o build/fedora/mongo/db/repl/databases_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/databases_cloner.cpp g++ -o build/fedora/mongo/db/repl/collection_bulk_loader_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/collection_bulk_loader_impl.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/databases_cloner.h:39, from src/mongo/db/repl/databases_cloner.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/databases_cloner.h:39, from src/mongo/db/repl/databases_cloner.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/databases_cloner.h:38, from src/mongo/db/repl/databases_cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/databases_cloner.h:39, from src/mongo/db/repl/databases_cloner.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/databases_cloner.h:39, from src/mongo/db/repl/databases_cloner.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/databases_cloner.h:38, from src/mongo/db/repl/databases_cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/collection_bulk_loader_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/collection_bulk_loader_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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/databases_cloner.h:39, from src/mongo/db/repl/databases_cloner.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libdatabases_cloner.a build/fedora/mongo/db/repl/databases_cloner.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libdatabases_cloner.a ar rcsTD build/fedora/mongo/db/exec/libworking_set.a build/fedora/mongo/db/exec/working_set.o Skipping ranlib for thin archive build/fedora/mongo/db/exec/libworking_set.a g++ -o build/fedora/mongo/db/storage/mmap_v1/repair_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/repair_database.cpp g++ -o build/fedora/mongo/db/commands/list_databases.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/list_databases.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/extent_manager.h:39, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.h:35, from src/mongo/db/storage/mmap_v1/repair_database.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/repair_database.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/repair_database.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/extent_manager.h:39, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.h:35, from src/mongo/db/storage/mmap_v1/repair_database.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/list_databases.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/repair_database.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/list_databases.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/list_databases.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/list_databases.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/repair_database.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/list_databases.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/list_databases.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/list_databases.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/extent_manager.h:39, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.h:35, from src/mongo/db/storage/mmap_v1/repair_database.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/list_databases.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/repair_database.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/storage/mmap_v1/extent_manager.h:37, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.h:35, from src/mongo/db/storage/mmap_v1/repair_database.cpp:35: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/collection_index_usage_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/collection_index_usage_tracker.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/collection_index_usage_tracker.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/config_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config_server_op_observer.cpp g++ -o build/fedora/mongo/db/s/metadata_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/metadata_manager.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/s/config_server_op_observer.h:32, from src/mongo/db/s/config_server_op_observer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/s/config_server_op_observer.h:32, from src/mongo/db/s/config_server_op_observer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/s/metadata_manager.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/s/metadata_manager.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/s/metadata_manager.h:34, from src/mongo/db/s/metadata_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/s/metadata_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/s/config_server_op_observer.h:32, from src/mongo/db/s/config_server_op_observer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/s/metadata_manager.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/s/metadata_manager.h:34, from src/mongo/db/s/metadata_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/s/metadata_manager.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/migration_chunk_cloner_source_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.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/fedora/mongo/db/s/shard_identity_rollback_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/shard_identity_rollback_notifier.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/move_timing_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/move_timing_helper.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/s/move_timing_helper.h:33, from src/mongo/db/s/move_timing_helper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:37, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bson_field.h:34, from src/mongo/bson/bsonobjbuilder.h:44, from src/mongo/db/s/move_timing_helper.h:33, from src/mongo/db/s/move_timing_helper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/move_timing_helper.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/data_type.h:32, from src/mongo/bson/bsonobj.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/data_view.h:30, from src/mongo/bson/bsonobjbuilder.h:42, from src/mongo/db/s/move_timing_helper.h:33, from src/mongo/db/s/move_timing_helper.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< , std::allocator > >(std::__cxx11::basic_string, std::allocator > const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::MoveTimingHelper::~MoveTimingHelper()' at src/mongo/db/s/move_timing_helper.cpp:88:58: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 502] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/s/active_move_primaries_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/active_move_primaries_registry.cpp g++ -o build/fedora/mongo/db/s/move_primary_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/move_primary_source_manager.cpp g++ -o build/fedora/mongo/db/s/migration_chunk_cloner_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_chunk_cloner_source.cpp g++ -o build/fedora/mongo/db/s/read_only_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/read_only_catalog_cache_loader.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, 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:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, 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:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, 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:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/shard_filtering_metadata_refresh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/shard_filtering_metadata_refresh.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/shard_filtering_metadata_refresh.h:31, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/shard_filtering_metadata_refresh.h:31, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/shard_filtering_metadata_refresh.h:31, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/initializer_function.h:30, from src/mongo/base/global_initializer_registerer.h:34, from src/mongo/base/init.h:45, from src/mongo/base/shim.h:33, from src/mongo/db/catalog/database.h:34, 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:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/shard_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/shard_server_op_observer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.h:32, from src/mongo/db/s/shard_server_op_observer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.h:32, from src/mongo/db/s/shard_server_op_observer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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/fedora/mongo/db/s/namespace_metadata_change_notifications.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/namespace_metadata_change_notifications.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.h:32, from src/mongo/db/s/shard_server_op_observer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/migration_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/scoped_operation_completion_sharding_actions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/shard_metadata_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/shard_metadata_util.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/session_catalog_migration_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/session_catalog_migration_source.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/db/s/session_catalog_migration_source.h:35, from src/mongo/db/s/session_catalog_migration_source.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/session_catalog_migration_source.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/session_catalog_migration_source.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/db/s/session_catalog_migration_source.h:35, from src/mongo/db/s/session_catalog_migration_source.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/session_catalog_migration_source.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/session_catalog_migration_source.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/db/s/session_catalog_migration_source.h:35, from src/mongo/db/s/session_catalog_migration_source.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/sharding_initialization_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_initialization_mongod.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/session_catalog_migration_source.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/s/sharding_state.h:34, from src/mongo/db/s/sharding_initialization_mongod.h:33, from src/mongo/db/s/sharding_initialization_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_initialization_mongod.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_initialization_mongod.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/s/sharding_state.h:34, from src/mongo/db/s/sharding_initialization_mongod.h:33, from src/mongo/db/s/sharding_initialization_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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 src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/s/sharding_state.h:34, from src/mongo/db/s/sharding_initialization_mongod.h:33, from src/mongo/db/s/sharding_initialization_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/implicit_create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/sharding_initialization_mongod.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/implicit_create_collection.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/implicit_create_collection.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/implicit_create_collection.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/implicit_create_collection.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/s/implicit_create_collection.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/collection_sharding_state_factory_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/collection_sharding_state_factory_shard.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/implicit_create_collection.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/session_catalog_migration_destination.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/session_catalog_migration_destination.cpp g++ -o build/fedora/mongo/db/s/collection_sharding_runtime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/collection_sharding_runtime.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/s/session_catalog_migration_destination.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/s/session_catalog_migration_destination.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/session_catalog_migration_destination.h:36, from src/mongo/db/s/session_catalog_migration_destination.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_sharding_runtime.h:32, from src/mongo/db/s/collection_sharding_runtime.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_sharding_runtime.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/s/session_catalog_migration_destination.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_sharding_runtime.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_sharding_runtime.h:32, from src/mongo/db/s/collection_sharding_runtime.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/s/session_catalog_migration_destination.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(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:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_sharding_runtime.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_sharding_runtime.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/session_catalog_migration_destination.h:36, from src/mongo/db/s/session_catalog_migration_destination.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_sharding_runtime.h:32, from src/mongo/db/s/collection_sharding_runtime.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/s/session_catalog_migration_destination.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/collection_sharding_runtime.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/chunk_splitter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/chunk_splitter.cpp g++ -o build/fedora/mongo/db/s/chunk_move_write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/chunk_move_write_concern_options.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/util/concurrency/thread_pool.h:41, from src/mongo/db/s/chunk_splitter.h:31, from src/mongo/db/s/chunk_splitter.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/kv/kv_storage_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/kv/kv_storage_engine.cpp ar rcsTD build/fedora/mongo/db/s/libsharding_runtime_d.a build/fedora/mongo/db/s/active_migrations_registry.o build/fedora/mongo/db/s/active_move_primaries_registry.o build/fedora/mongo/db/s/chunk_move_write_concern_options.o build/fedora/mongo/db/s/chunk_splitter.o build/fedora/mongo/db/s/collection_range_deleter.o build/fedora/mongo/db/s/collection_sharding_runtime.o build/fedora/mongo/db/s/collection_sharding_state_factory_shard.o build/fedora/mongo/db/s/config_server_op_observer.o build/fedora/mongo/db/s/implicit_create_collection.o build/fedora/mongo/db/s/metadata_manager.o build/fedora/mongo/db/s/migration_chunk_cloner_source_legacy.o build/fedora/mongo/db/s/migration_chunk_cloner_source.o build/fedora/mongo/db/s/migration_destination_manager.o build/fedora/mongo/db/s/migration_source_manager.o build/fedora/mongo/db/s/migration_util.o build/fedora/mongo/db/s/move_primary_source_manager.o build/fedora/mongo/db/s/move_timing_helper.o build/fedora/mongo/db/s/namespace_metadata_change_notifications.o build/fedora/mongo/db/s/read_only_catalog_cache_loader.o build/fedora/mongo/db/s/scoped_operation_completion_sharding_actions.o build/fedora/mongo/db/s/session_catalog_migration_destination.o build/fedora/mongo/db/s/session_catalog_migration_source.o build/fedora/mongo/db/s/shard_filtering_metadata_refresh.o build/fedora/mongo/db/s/shard_identity_rollback_notifier.o build/fedora/mongo/db/s/shard_metadata_util.o build/fedora/mongo/db/s/shard_server_catalog_cache_loader.o build/fedora/mongo/db/s/shard_server_op_observer.o build/fedora/mongo/db/s/sharding_config_optime_gossip.o build/fedora/mongo/db/s/sharding_initialization_mongod.o build/fedora/mongo/db/s/sharding_state_recovery.o build/fedora/mongo/db/s/sharding_statistics.o build/fedora/mongo/db/s/split_chunk.o build/fedora/mongo/db/s/split_vector.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libsharding_runtime_d.a g++ -o build/fedora/mongo/db/s/config/sharding_catalog_manager_chunk_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/storage/kv/kv_storage_engine.h:34, from src/mongo/db/storage/kv/kv_storage_engine.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/storage/kv/libkv_storage_engine.a build/fedora/mongo/db/storage/kv/kv_storage_engine.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/kv/libkv_storage_engine.a g++ -o build/fedora/mongo/db/s/balancer/cluster_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/cluster_statistics.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/catalog/drop_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/drop_collection.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/drop_collection.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/drop_collection.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/drop_collection.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/drop_collection.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/sharding_migration_critical_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_migration_critical_section.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/drop_collection.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/collection_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/collection_sharding_state.cpp g++ -o build/fedora/mongo/db/s/sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_state.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/collection_sharding_state.h:32, from src/mongo/db/s/collection_sharding_state.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/collection_sharding_state.cpp:88:20: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/s/sharding_state.h:34, from src/mongo/db/s/sharding_state.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/database_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/database_sharding_state.cpp g++ -o build/fedora/mongo/db/repl/topology_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/topology_coordinator.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/database_sharding_state.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/database_sharding_state.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/db/repl/member_state.h:40, from src/mongo/db/repl/repl_set_heartbeat_response.h:33, from src/mongo/db/repl/topology_coordinator.h:36, from src/mongo/db/repl/topology_coordinator.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/s/database_sharding_state.h:32, from src/mongo/db/s/database_sharding_state.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/s/libsharding_api_d.a build/fedora/mongo/db/s/collection_metadata.o build/fedora/mongo/db/s/collection_sharding_state.o build/fedora/mongo/db/s/database_sharding_state.o build/fedora/mongo/db/s/operation_sharding_state.o build/fedora/mongo/db/s/sharded_connection_info.o build/fedora/mongo/db/s/sharding_migration_critical_section.o build/fedora/mongo/db/s/sharding_state.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libsharding_api_d.a g++ -o build/fedora/mongo/db/repl/heartbeat_response_action.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/heartbeat_response_action.cpp g++ -o build/fedora/mongo/db/repl/member_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/member_data.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/member_data.h:31, from src/mongo/db/repl/member_data.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/replication_coordinator_impl_heartbeat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/logical_time.h:31, from src/mongo/db/logical_clock.h:31, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/logical_time.h:31, from src/mongo/db/logical_clock.h:31, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libtopology_coordinator.a build/fedora/mongo/db/repl/heartbeat_response_action.o build/fedora/mongo/db/repl/member_data.o build/fedora/mongo/db/repl/topology_coordinator.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call Skipping ranlib for thin archive build/fedora/mongo/db/repl/libtopology_coordinator.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/replication_coordinator_impl_elect_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/logical_time.h:31, from src/mongo/db/logical_clock.h:31, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/replication_coordinator_impl.h:36, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/replication_coordinator_impl.h:36, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:48: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/elect_cmd_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/elect_cmd_runner.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/oid.h:34, from src/mongo/db/repl/elect_cmd_runner.h:34, from src/mongo/db/repl/elect_cmd_runner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/freshness_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/freshness_checker.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/freshness_checker.h:34, from src/mongo/db/repl/freshness_checker.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/check_quorum_for_config_change.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/check_quorum_for_config_change.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/data_view.h:30, from src/mongo/bson/timestamp.h:30, from src/mongo/db/repl/freshness_checker.h:34, from src/mongo/db/repl/freshness_checker.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/executor/remote_command_request.h:34, from src/mongo/db/repl/scatter_gather_algorithm.h:33, from src/mongo/db/repl/check_quorum_for_config_change.h:32, from src/mongo/db/repl/check_quorum_for_config_change.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/ftdc/ftdc_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/ftdc_commands.cpp ar rcsTD build/fedora/mongo/db/repl/librepl_coordinator_impl.a build/fedora/mongo/db/repl/check_quorum_for_config_change.o build/fedora/mongo/db/repl/elect_cmd_runner.o build/fedora/mongo/db/repl/freshness_checker.o build/fedora/mongo/db/repl/repl_set_config_checks.o build/fedora/mongo/db/repl/replication_coordinator_impl.o build/fedora/mongo/db/repl/replication_coordinator_impl_elect.o build/fedora/mongo/db/repl/replication_coordinator_impl_elect_v1.o build/fedora/mongo/db/repl/replication_coordinator_impl_heartbeat.o build/fedora/mongo/db/repl/vote_requester.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librepl_coordinator_impl.a g++ -o build/fedora/mongo/db/ops/insert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/insert.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_commands.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_commands.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/ftdc/ftdc_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/ftdc/ftdc_commands.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/ops/single_write_result_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/ops/single_write_result_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_commands.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/ops/single_write_result_gen.h:16, from build/fedora/mongo/db/ops/single_write_result_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ g++ -o build/fedora/mongo/db/ops/update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/update.cpp src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/ops/single_write_result_gen.h:16, from build/fedora/mongo/db/ops/single_write_result_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:33, from src/mongo/db/ops/update.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:33, from src/mongo/db/ops/update.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:33, from src/mongo/db/ops/update.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:33, from src/mongo/db/ops/update.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:33, from src/mongo/db/ops/update.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:33, from src/mongo/db/ops/update.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/ops/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/delete.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete.h:34, from src/mongo/db/ops/delete.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete.h:34, from src/mongo/db/ops/delete.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/ops/delete.h:33, from src/mongo/db/ops/delete.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete.h:34, from src/mongo/db/ops/delete.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete.h:34, from src/mongo/db/ops/delete.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/ops/update.h:33, from src/mongo/db/ops/update.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/ops/delete.h:33, from src/mongo/db/ops/delete.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/text_or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/text_or.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete.h:34, from src/mongo/db/ops/delete.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libwrite_ops.a build/fedora/mongo/db/ops/delete.o build/fedora/mongo/db/ops/find_and_modify_result.o build/fedora/mongo/db/ops/insert.o build/fedora/mongo/db/ops/update.o build/fedora/mongo/db/ops/write_ops_retryability.o build/fedora/mongo/db/ops/single_write_result_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/libwrite_ops.a g++ -o build/fedora/mongo/db/commands/getmore_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/getmore_cmd.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text_or.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/getmore_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/getmore_cmd.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/getmore_cmd.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/getmore_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/getmore_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/getmore_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/getmore_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/index_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index_builder.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/getmore_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/index_builder.h:34, from src/mongo/db/index_builder.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/index_builder.h:34, from src/mongo/db/index_builder.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/index_builder.h:34, from src/mongo/db/index_builder.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/index_rebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index_rebuilder.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/index_rebuilder.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/index_builder.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_rebuilder.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_rebuilder.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/index_rebuilder.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_rebuilder.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_rebuilder.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/index_rebuilder.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/index_builder.h:33, from src/mongo/db/index_builder.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/index_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index_legacy.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/index_legacy.h:33, from src/mongo/db/index_legacy.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_legacy.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_legacy.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/index_legacy.h:33, from src/mongo/db/index_legacy.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_legacy.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_legacy.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_rebuilder.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/index_legacy.h:33, from src/mongo/db/index_legacy.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/index_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/index_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index_legacy.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/index_iterator.h:34, from src/mongo/db/exec/index_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/index_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/index_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/index_iterator.h:34, from src/mongo/db/exec/index_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/index_iterator.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/index_iterator.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/index_iterator.h:34, from src/mongo/db/exec/index_iterator.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libindex_d.a build/fedora/mongo/db/index_builder.o build/fedora/mongo/db/index_legacy.o build/fedora/mongo/db/index_rebuilder.o Skipping ranlib for thin archive build/fedora/mongo/db/libindex_d.a g++ -o build/fedora/mongo/db/repl/replication_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/replication_recovery.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/index_iterator.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/repl/replication_recovery.h:33, from src/mongo/db/repl/replication_recovery.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/replication_recovery.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/replication_recovery.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/repl/replication_recovery.h:33, from src/mongo/db/repl/replication_recovery.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/replication_recovery.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/replication_recovery.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/repl/replication_recovery.h:33, from src/mongo/db/repl/replication_recovery.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/op_observer.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/replication_recovery.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libop_observer.a build/fedora/mongo/db/op_observer.o Skipping ranlib for thin archive build/fedora/mongo/db/libop_observer.a g++ -o build/fedora/mongo/db/repl/rollback_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/rollback_checker.cpp ar rcsTD build/fedora/mongo/db/repl/libreplication_recovery.a build/fedora/mongo/db/repl/replication_recovery.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libreplication_recovery.a ar rcsTD build/fedora/mongo/db/repl/libsync_source_resolver.a build/fedora/mongo/db/repl/sync_source_resolver.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libsync_source_resolver.a ar rcsTD build/fedora/mongo/db/repl/libdrop_pending_collection_reaper.a build/fedora/mongo/db/repl/drop_pending_collection_reaper.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libdrop_pending_collection_reaper.a g++ -o build/fedora/mongo/s/client/shard_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/shard_local.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/shard_local.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/shard_local.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/s/client/rs_local_client.h:32, from src/mongo/s/client/shard_local.h:32, from src/mongo/s/client/shard_local.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/shard_local.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/shard_local.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/s/client/rs_local_client.h:32, from src/mongo/s/client/shard_local.h:32, from src/mongo/s/client/shard_local.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/db_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/db_raii.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/shard_local.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 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:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/pipeline_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/pipeline_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/pipeline_command.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/pipeline_command.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/pipeline_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/pipeline_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/pipeline_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/pipeline_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/db_raii.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/pipeline_command.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/commands/pipeline_command.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/libdb_raii.a build/fedora/mongo/db/db_raii.o Skipping ranlib for thin archive build/fedora/mongo/db/libdb_raii.a g++ -o build/fedora/mongo/db/exec/pipeline_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/pipeline_proxy.cpp g++ -o build/fedora/mongo/db/commands/dbcommands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/dbcommands.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/dbcommands.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands.cpp:55: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands.cpp:55: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/dbcommands.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands.cpp:55: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands.cpp:55: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/dbcommands.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/pipeline_proxy.h:34, from src/mongo/db/exec/pipeline_proxy.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/commands/dbcommands.cpp:55: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/write_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/write_concern.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/base/simple_string_data_comparator.h:31, from src/mongo/db/commands/dbcommands.cpp:35: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/catalog/collection_info_cache_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/collection_info_cache_impl.cpp g++ -o build/fedora/mongo/db/catalog/index_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_catalog_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/catalog/collection_info_cache.h:32, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/catalog/collection_info_cache.h:32, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_catalog_impl.h:33, from src/mongo/db/catalog/index_catalog_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_catalog_impl.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_catalog_impl.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_catalog_impl.h:33, from src/mongo/db/catalog/index_catalog_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_catalog_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_catalog_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/catalog/collection_info_cache.h:32, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_catalog_impl.h:33, from src/mongo/db/catalog/index_catalog_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/collection_info_cache_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_catalog_impl.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/transaction_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/transaction_reaper.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/transaction_reaper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/transaction_reaper.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/transaction_reaper.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/transaction_reaper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/transaction_reaper.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/transaction_reaper.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonmisc.h:32, from src/mongo/db/transaction_reaper.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/system_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/system_index.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/transaction_reaper.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/client/index_spec.h:35, from src/mongo/db/system_index.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/system_index.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/system_index.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/client/index_spec.h:35, from src/mongo/db/system_index.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/client/index_spec.h:35, from src/mongo/db/system_index.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/data_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/data_file.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/system_index.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/unset_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/unset_sharding_command.cpp g++ -o build/fedora/mongo/db/kill_sessions_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/kill_sessions_local.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/unset_sharding_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/unset_sharding_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/unset_sharding_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/unset_sharding_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/kill_sessions_local.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/kill_sessions_local.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/kill_sessions_gen.h:16, from src/mongo/db/kill_sessions.h:35, from src/mongo/db/session_killer.h:37, from src/mongo/db/kill_sessions_local.h:31, from src/mongo/db/kill_sessions_local.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/kill_sessions_local.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/kill_sessions_local.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/kill_sessions_gen.h:16, from src/mongo/db/kill_sessions.h:35, from src/mongo/db/session_killer.h:37, from src/mongo/db/kill_sessions_local.h:31, from src/mongo/db/kill_sessions_local.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/unset_sharding_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libtransaction_reaper.a build/fedora/mongo/db/transaction_reaper.o Skipping ranlib for thin archive build/fedora/mongo/db/libtransaction_reaper.a src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ /usr/bin/python3 buildscripts/idl/idlc.py --include src --base_dir build/fedora --target_arch i386 --header build/fedora/mongo/db/transactions_stats_gen.h --output build/fedora/mongo/db/transactions_stats_gen.cpp src/mongo/db/transactions_stats.idl g++ -o build/fedora/mongo/db/retryable_writes_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/retryable_writes_stats.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/kill_sessions_local.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/retryable_writes_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/retryable_writes_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/retryable_writes_stats.h:31, from src/mongo/db/retryable_writes_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/retryable_writes_stats.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/retryable_writes_stats.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/retryable_writes_stats.h:31, from src/mongo/db/retryable_writes_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/stats/latency_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/latency_server_status_section.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/retryable_writes_stats.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/single_transaction_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/single_transaction_stats.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/latency_server_status_section.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/latency_server_status_section.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/latency_server_status_section.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/latency_server_status_section.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/latency_server_status_section.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/latency_server_status_section.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/single_transaction_stats.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/single_transaction_stats.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/single_transaction_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/single_transaction_stats.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/single_transaction_stats.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/single_transaction_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/latency_server_status_section.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/single_transaction_stats.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/concurrency/write_conflict_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/concurrency/write_conflict_exception.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_init.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/concurrency/write_conflict_exception.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/concurrency/write_conflict_exception.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/concurrency/write_conflict_exception.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/concurrency/write_conflict_exception.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/concurrency/write_conflict_exception.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/concurrency/write_conflict_exception.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/btree/btree_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/btree/btree_interface.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/concurrency/write_conflict_exception.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/sessions_collection_config_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/sessions_collection_config_server.cpp g++ -o build/fedora/mongo/db/service_liaison_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/service_liaison_mongod.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/sessions_collection_config_server.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/sessions_collection_config_server.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/sessions_collection_config_server.h:33, from src/mongo/db/sessions_collection_config_server.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/sessions_collection_config_server.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/sessions_collection_config_server.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/sessions_collection_config_server.h:33, from src/mongo/db/sessions_collection_config_server.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/service_liaison_mongod.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/service_liaison_mongod.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_liaison_mongod.h:31, from src/mongo/db/service_liaison_mongod.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/service_liaison_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/service_liaison_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_liaison_mongod.h:31, from src/mongo/db/service_liaison_mongod.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/sessions_collection_config_server.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/service_liaison_mongod.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repair_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repair_database.cpp g++ -o build/fedora/mongo/db/index/hash_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/hash_access_method.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repair_database.h:33, from src/mongo/db/repair_database.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repair_database.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repair_database.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repair_database.h:33, from src/mongo/db/repair_database.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repair_database.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repair_database.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repair_database.h:33, from src/mongo/db/repair_database.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/libmongod_options_init.a build/fedora/mongo/db/mongod_options_init.o Skipping ranlib for thin archive build/fedora/mongo/libmongod_options_init.a g++ -o build/fedora/mongo/db/repl/scatter_gather_algorithm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/scatter_gather_algorithm.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UUID, mongo::StringMapTraits>': src/mongo/db/catalog/namespace_uuid_cache.h:86:23: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/libscatter_gather.a build/fedora/mongo/db/repl/scatter_gather_algorithm.o build/fedora/mongo/db/repl/scatter_gather_runner.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libscatter_gather.a g++ -o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repair_database.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:31: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:149:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 149 | memset(this, 0, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:158:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 158 | memcpy(this, &e, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:32, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:32, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:32, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/librepair_database.a build/fedora/mongo/db/repair_database.o Skipping ranlib for thin archive build/fedora/mongo/db/librepair_database.a g++ -o build/fedora/mongo/db/commands/test_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/test_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/test_commands.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/test_commands.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/test_commands.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/test_commands.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/test_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/test_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/commands/test_commands.cpp:40: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/noop_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/noop_writer.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/noop_writer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/noop_writer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/repl/noop_writer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/noop_writer.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/noop_writer.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/repl/noop_writer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/test_commands.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/noop_writer.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/commands/libshell_protocol.a build/fedora/mongo/db/commands/test_commands.o build/fedora/mongo/db/commands/whats_my_uri_cmd.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libshell_protocol.a ar rcsTD build/fedora/mongo/db/storage/mmap_v1/librecord_access_tracker.a build/fedora/mongo/db/storage/mmap_v1/record_access_tracker.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/librecord_access_tracker.a g++ -o build/fedora/mongo/db/commands/fsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/fsync.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fsync.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fsync.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/fsync.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fsync.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fsync.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 g++ -o build/fedora/mongo/db/dbmain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/db/dbmain.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/fsync.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/projection.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/projection_exec.h:33, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/projection_exec.h:33, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/projection.h:32, from src/mongo/db/exec/projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/exec/projection_exec.h:34, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/exec/projection_exec.h:34, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/fsync.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/projection.h:32, from src/mongo/db/exec/projection.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:149:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MatchExpression*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:162:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec::MetaProjection, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:173:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/exec/projection.h:134:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/commands/libmongod_fsync.a build/fedora/mongo/db/commands/fsync.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libmongod_fsync.a g++ -o build/fedora/mongo/db/ops/parsed_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/parsed_update.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/exec/projection_exec.h:34, from src/mongo/db/exec/projection.h:33, from src/mongo/db/exec/projection.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/ops/parsed_update.h:33, from src/mongo/db/ops/parsed_update.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/ops/parsed_update.h:33, from src/mongo/db/ops/parsed_update.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/ops/parsed_update.h:33, from src/mongo/db/ops/parsed_update.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call g++ -o build/fedora/mongo/client/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/client/connection_pool.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/expression_with_placeholder.h:35, from src/mongo/db/ops/parsed_update.h:33, from src/mongo/db/ops/parsed_update.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/client/libconnection_pool.a build/fedora/mongo/client/connection_pool.o Skipping ranlib for thin archive build/fedora/mongo/client/libconnection_pool.a g++ -o build/fedora/mongo/db/storage/mmap_v1/btree/btree_logic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/btree/btree_logic.cpp g++ -o build/fedora/mongo/db/s/config/configsvr_commit_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_move_primary_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_move_primary_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/stats/timer_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/timer_stats.cpp g++ -o build/fedora/mongo/db/s/config/configsvr_merge_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_merge_chunk_command.cpp g++ -o build/fedora/mongo/db/s/balancer/scoped_migration_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/scoped_migration_request.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_merge_chunk_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_merge_chunk_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:167:25: warning: redundant move in return statement [-Wredundant-move] 167 | return std::move(scopedMigrationRequest); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/s/balancer/scoped_migration_request.cpp:167:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/balancer/balancer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/balancer.cpp g++ -o build/fedora/mongo/db/s/balancer/balancer_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/balancer_policy.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/balancer/balancer_policy.h:35, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:35, from src/mongo/db/s/balancer/balancer.h:32, from src/mongo/db/s/balancer/balancer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/balancer/balancer_policy.h:35, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:35, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:31, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/balancer/balancer_chunk_selection_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy.cpp g++ -o build/fedora/mongo/db/s/balancer/cluster_statistics_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/balancer/cluster_statistics_impl.cpp g++ -o build/fedora/mongo/s/client/rs_local_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/s/client/rs_local_client.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/s/client/rs_local_client.h:32, from src/mongo/s/client/rs_local_client.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/s/libbalancer.a build/fedora/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.o build/fedora/mongo/db/s/balancer/balancer_chunk_selection_policy.o build/fedora/mongo/db/s/balancer/balancer_policy.o build/fedora/mongo/db/s/balancer/balancer.o build/fedora/mongo/db/s/balancer/cluster_statistics_impl.o build/fedora/mongo/db/s/balancer/cluster_statistics.o build/fedora/mongo/db/s/balancer/migration_manager.o build/fedora/mongo/db/s/balancer/scoped_migration_request.o build/fedora/mongo/db/s/balancer/type_migration.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libbalancer.a ar rcsTD build/fedora/mongo/db/repl/libreplication_consistency_markers_impl.a build/fedora/mongo/db/repl/replication_consistency_markers_impl.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libreplication_consistency_markers_impl.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/auth/libauth_impl_internal_local.a build/fedora/mongo/db/auth/authz_manager_external_state_local.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauth_impl_internal_local.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/database_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/database_cloner.cpp In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/s/client/rs_local_client.h:32, from src/mongo/s/client/rs_local_client.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/database_cloner.h:39, from src/mongo/db/repl/database_cloner.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/database_cloner.h:39, from src/mongo/db/repl/database_cloner.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/database_cloner.h:38, from src/mongo/db/repl/database_cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/database_cloner.h:39, from src/mongo/db/repl/database_cloner.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/database_cloner.h:39, from src/mongo/db/repl/database_cloner.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/s/client/rs_local_client.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/database_cloner.h:38, from src/mongo/db/repl/database_cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/count.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/database_cloner.h:39, from src/mongo/db/repl/database_cloner.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/count.h:32, from src/mongo/db/exec/count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/count.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/count.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/count.h:32, from src/mongo/db/exec/count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/count.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/count.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/count.h:32, from src/mongo/db/exec/count.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/repl/database_cloner.h:37, from src/mongo/db/repl/database_cloner.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/count.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libdatabase_cloner.a build/fedora/mongo/db/repl/database_cloner.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libdatabase_cloner.a g++ -o build/fedora/mongo/db/repl/sync_source_feedback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/sync_source_feedback.cpp g++ -o build/fedora/mongo/db/catalog/collection_info_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/collection_info_cache.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/catalog/collection_info_cache.h:32, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/replication_coordinator.h:36, from src/mongo/db/repl/sync_source_feedback.h:34, from src/mongo/db/repl/sync_source_feedback.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/catalog/collection_info_cache.h:32, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/sync_source_feedback.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/sync_source_feedback.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/replication_coordinator.h:36, from src/mongo/db/repl/sync_source_feedback.h:34, from src/mongo/db/repl/sync_source_feedback.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/sync_source_feedback.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 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::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/sync_source_feedback.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/replication_coordinator.h:36, from src/mongo/db/repl/sync_source_feedback.h:34, from src/mongo/db/repl/sync_source_feedback.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/collection_index_usage_tracker.h:33, from src/mongo/db/catalog/collection_info_cache.h:32, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/bgsync.h:36, from src/mongo/db/repl/sync_source_feedback.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/oplog_applier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_applier.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/oplog_applier.h:38, from src/mongo/db/repl/oplog_applier.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/oplog_applier.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/oplog_applier.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/oplog_applier.h:38, from src/mongo/db/repl/oplog_applier.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/oplog_applier.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/oplog_applier.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/oplog_applier.h:38, from src/mongo/db/repl/oplog_applier.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/initial_syncer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/initial_syncer.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/repl/oplog_applier.cpp: In member function 'mongo::StatusWith > mongo::repl::OplogApplier::getNextApplierBatch(mongo::OperationContext*, const mongo::repl::OplogApplier::BatchLimits&)': src/mongo/db/repl/oplog_applier.cpp:120:29: warning: redundant move in return statement [-Wredundant-move] 120 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:120:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:125:29: warning: redundant move in return statement [-Wredundant-move] 125 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:125:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:130:29: warning: redundant move in return statement [-Wredundant-move] 130 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:130:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:140:21: warning: redundant move in return statement [-Wredundant-move] 140 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:140:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/initial_syncer.h:37, from src/mongo/db/repl/initial_syncer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/oplog_applier.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/initial_syncer.h:37, from src/mongo/db/repl/initial_syncer.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/clientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/clientcursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/initial_syncer.h:42, from src/mongo/db/repl/initial_syncer.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/clientcursor.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/clientcursor.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/clientcursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/clientcursor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/clientcursor.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/clientcursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/clientcursor.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.cpp ar rcsTD build/fedora/mongo/db/repl/libinitial_syncer.a build/fedora/mongo/db/repl/initial_syncer.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libinitial_syncer.a g++ -o build/fedora/mongo/db/repl/applier_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/applier_helpers.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_context.h:36, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.h:121:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a g++ -o build/fedora/mongo/db/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/background.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/applier_helpers.h:34, from src/mongo/db/repl/applier_helpers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/applier_helpers.h:35, from src/mongo/db/repl/applier_helpers.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/applier_helpers.h:35, from src/mongo/db/repl/applier_helpers.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/applier_helpers.h:34, from src/mongo/db/repl/applier_helpers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/applier_helpers.h:35, from src/mongo/db/repl/applier_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/applier_helpers.h:35, from src/mongo/db/repl/applier_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/background.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/background.cpp:73:18: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/applier_helpers.h:34, from src/mongo/db/repl/applier_helpers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libbackground.a build/fedora/mongo/db/background.o Skipping ranlib for thin archive build/fedora/mongo/db/libbackground.a g++ -o build/fedora/mongo/db/catalog/index_create_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_create_impl.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/applier_helpers.h:35, from src/mongo/db/repl/applier_helpers.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_create.h:38, from src/mongo/db/catalog/index_create_impl.h:31, from src/mongo/db/catalog/index_create_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create_impl.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create_impl.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_create.h:38, from src/mongo/db/catalog/index_create_impl.h:31, from src/mongo/db/catalog/index_create_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_create.h:38, from src/mongo/db/catalog/index_create_impl.h:31, from src/mongo/db/catalog/index_create_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/sync_tail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/sync_tail.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create_impl.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/sync_tail.h:35, from src/mongo/db/repl/sync_tail.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/sync_tail.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/sync_tail.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/sync_tail.h:35, from src/mongo/db/repl/sync_tail.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/sync_tail.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/sync_tail.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/sync_tail.h:35, from src/mongo/db/repl/sync_tail.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/multiapplier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/multiapplier.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::{anonymous}::CachedCollectionProperties::CollectionProperties, mongo::StringMapTraits>': src/mongo/db/repl/sync_tail.cpp:588:37: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::{anonymous}::CachedCollectionProperties::CollectionProperties; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::{anonymous}::CachedCollectionProperties::CollectionProperties; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::{anonymous}::CachedCollectionProperties::CollectionProperties; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::{anonymous}::CachedCollectionProperties::CollectionProperties; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/sync_tail.h:38, from src/mongo/db/repl/sync_tail.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libmultiapplier.a build/fedora/mongo/db/repl/multiapplier.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libmultiapplier.a g++ -o build/fedora/mongo/db/catalog/index_create.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_create.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_create.h:38, from src/mongo/db/catalog/index_create.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_create.h:38, from src/mongo/db/catalog/index_create.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/index_create.h:38, from src/mongo/db/catalog/index_create.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/index_create.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/catalog/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/drop_indexes.cpp g++ -o build/fedora/mongo/db/exec/plan_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/plan_stage.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/drop_indexes.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/drop_indexes.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/drop_indexes.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/drop_indexes.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/or.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/or.h:33, from src/mongo/db/exec/or.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/or.h:33, from src/mongo/db/exec/or.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/or.h:31, from src/mongo/db/exec/or.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/catalog/drop_indexes.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/subplan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/subplan.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/subplan.h:38, from src/mongo/db/exec/subplan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.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/fedora/mongo/db/free_mon/free_mon_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_options.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/subplan.h:38, from src/mongo/db/exec/subplan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/subplan.h:39, from src/mongo/db/exec/subplan.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/start_chunk_clone_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/start_chunk_clone_request.cpp g++ -o build/fedora/mongo/db/dbhelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/dbhelpers.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/dbhelpers.h:34, from src/mongo/db/dbhelpers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/dbhelpers.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/dbhelpers.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/dbhelpers.h:34, from src/mongo/db/dbhelpers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/dbhelpers.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/dbhelpers.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/dbhelpers.h:34, from src/mongo/db/dbhelpers.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/killcursors_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/killcursors_cmd.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/killcursors_cmd.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/killcursors_cmd.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/killcursors_cmd.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/dbhelpers.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/killcursors_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/kv/kv_prefix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/kv/kv_prefix.cpp g++ -o build/fedora/mongo/db/commands/list_collections_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/list_collections_filter.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/dur_journal_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/dur_journal_writer.cpp ar rcsTD build/fedora/mongo/db/commands/liblist_collections_filter.a build/fedora/mongo/db/commands/list_collections_filter.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/liblist_collections_filter.a g++ -o build/fedora/mongo/db/matcher/expression_text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/expression_text.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text.h:34, from src/mongo/db/matcher/expression_text.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text.h:34, from src/mongo/db/matcher/expression_text.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_query.h:33, from src/mongo/db/fts/fts_query_impl.h:37, from src/mongo/db/matcher/expression_text.h:33, from src/mongo/db/matcher/expression_text.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/expression_text.h:34, from src/mongo/db/matcher/expression_text.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_query.h:33, from src/mongo/db/fts/fts_query_impl.h:37, from src/mongo/db/matcher/expression_text.h:33, from src/mongo/db/matcher/expression_text.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/matcher/expression_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_query.h:33, from src/mongo/db/fts/fts_query_impl.h:37, from src/mongo/db/matcher/expression_text.h:33, from src/mongo/db/matcher/expression_text.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/catalog/coll_mod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/coll_mod.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ 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:112:21: warning: redundant move in return statement [-Wredundant-move] 112 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text.cpp:112:21: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/coll_mod.h:31, from src/mongo/db/catalog/coll_mod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/coll_mod.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/coll_mod.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/coll_mod.h:31, from src/mongo/db/catalog/coll_mod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, 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_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/coll_mod.h:31, from src/mongo/db/catalog/coll_mod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/matcher/expression_text.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/coll_mod.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/rs_rollback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/rs_rollback.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/rs_rollback.h:32, from src/mongo/db/repl/rs_rollback.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/repl/rs_rollback.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/repl/rs_rollback.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/rs_rollback.h:32, from src/mongo/db/repl/rs_rollback.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/repl/rs_rollback.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/catalog/coll_mod.h:29, from src/mongo/db/catalog/coll_mod.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/repl/rs_rollback.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/rs_rollback.h:32, from src/mongo/db/repl/rs_rollback.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/repl/rs_rollback.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/config/configsvr_drop_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_drop_collection_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_collection_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_collection_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/librs_rollback.a build/fedora/mongo/db/repl/rs_rollback.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librs_rollback.a g++ -o build/fedora/mongo/db/stats/lock_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/lock_server_status_section.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/lock_server_status_section.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/lock_server_status_section.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/stats/lock_server_status_section.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/lock_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/lock_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/stats/lock_server_status_section.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/introspect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/introspect.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/stats/lock_server_status_section.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/storage_interface_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/storage_interface_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/rpc/message.h:37, from src/mongo/db/introspect.h:32, from src/mongo/db/introspect.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/introspect.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/introspect.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/rpc/message.h:37, from src/mongo/db/introspect.h:32, from src/mongo/db/introspect.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/introspect.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/introspect.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/rpc/message.h:37, from src/mongo/db/introspect.h:32, from src/mongo/db/introspect.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/storage_interface_impl.h:36, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:40, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:40, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/storage_interface_impl.h:36, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:40, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:40, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/storage_interface_impl.h:36, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/introspect.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libintrospect.a build/fedora/mongo/db/introspect.o Skipping ranlib for thin archive build/fedora/mongo/db/libintrospect.a g++ -o build/fedora/mongo/db/repl/oplog_buffer_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_buffer_proxy.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/storage_interface_impl.h:40, from src/mongo/db/repl/storage_interface_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/liboplog_buffer_proxy.a build/fedora/mongo/db/repl/oplog_buffer_proxy.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_buffer_proxy.a g++ -o build/fedora/mongo/db/free_mon/http_client_curl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/http_client_curl.cpp ar rcsTD build/fedora/mongo/db/stats/libtimer_stats.a build/fedora/mongo/db/stats/timer_stats.o Skipping ranlib for thin archive build/fedora/mongo/db/stats/libtimer_stats.a g++ -o build/fedora/mongo/db/instance.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/instance.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/durable_mapped_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/durable_mapped_file.cpp g++ -o build/fedora/mongo/db/s/config/configsvr_enable_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_enable_sharding_command.cpp ar rcsTD build/fedora/mongo/db/repl/libstorage_interface_impl.a build/fedora/mongo/db/repl/storage_interface_impl.o build/fedora/mongo/db/repl/collection_bulk_loader_impl.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libstorage_interface_impl.a ar rcsTD build/fedora/mongo/db/libserveronly.a build/fedora/mongo/db/instance.o Skipping ranlib for thin archive build/fedora/mongo/db/libserveronly.a g++ -o build/fedora/mongo/db/exec/distinct_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/distinct_scan.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/distinct_scan.h:35, from src/mongo/db/exec/distinct_scan.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/distinct_scan.h:35, from src/mongo/db/exec/distinct_scan.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/distinct_scan.h:32, from src/mongo/db/exec/distinct_scan.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move 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:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/distinct_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | 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:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 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:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/distinct_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/distinct_scan.h:32, from src/mongo/db/exec/distinct_scan.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/distinct_scan.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/plan_yield_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/plan_yield_policy.cpp g++ -o build/fedora/mongo/db/repl/do_txn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/do_txn.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog.h:35, from src/mongo/db/repl/do_txn.h:29, from src/mongo/db/repl/do_txn.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/do_txn.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/do_txn.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog.h:35, from src/mongo/db/repl/do_txn.h:29, from src/mongo/db/repl/do_txn.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/do_txn.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/do_txn.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog.h:35, from src/mongo/db/repl/do_txn.h:29, from src/mongo/db/repl/do_txn.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/query/plan_yield_policy.h:31, from src/mongo/db/query/plan_yield_policy.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/do_txn.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog.h:35, from src/mongo/db/repl/oplog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/oplog.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/oplog.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog.h:35, from src/mongo/db/repl/oplog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/oplog.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/oplog.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog.h:35, from src/mongo/db/repl/oplog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/apply_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/repl/apply_ops_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/apply_ops_gen.h:16, from build/fedora/mongo/db/repl/apply_ops_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/oplog.cpp:48: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/apply_ops_gen.h:16, from build/fedora/mongo/db/repl/apply_ops_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/data_replicator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/data_replicator_external_state_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/data_replicator_external_state.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/data_replicator_external_state.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/multiapplier.h:40, from src/mongo/db/repl/data_replicator_external_state.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/liboplog.a build/fedora/mongo/db/repl/apply_ops.o build/fedora/mongo/db/repl/do_txn.o build/fedora/mongo/db/repl/oplog.o build/fedora/mongo/db/repl/apply_ops_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog.a g++ -o build/fedora/mongo/db/ops/write_ops_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/write_ops_exec.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_applier.h:43, from src/mongo/db/repl/data_replicator_external_state.h:34, from src/mongo/db/repl/data_replicator_external_state_impl.h:31, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/ops/write_ops_exec.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/write_ops_exec.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/write_ops_exec.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/ops/write_ops_exec.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/write_ops_exec.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/write_ops_exec.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/ops/write_ops_exec.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/libdata_replicator_external_state_impl.a build/fedora/mongo/db/repl/data_replicator_external_state_impl.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libdata_replicator_external_state_impl.a g++ -o build/fedora/mongo/util/elapsed_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/fedora -Isrc src/mongo/util/elapsed_tracker.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/fts/ftsmongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/fts/ftsmongod.cpp g++ -o build/fedora/mongo/db/free_mon/free_mon_processor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_processor.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/write_ops_exec.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/flush_routing_table_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/flush_routing_table_cache_updates_command.cpp g++ -o build/fedora/mongo/db/catalog/index_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_catalog_entry.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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 g++ -o build/fedora/mongo/db/s/config/sharding_catalog_manager_zone_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/sharding_catalog_manager_zone_operations.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_zone_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/rollback_source_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/rollback_source_impl.cpp g++ -o build/fedora/mongo/db/repl/session_update_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/session_update_tracker.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/repl/session_update_tracker.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/repl/session_update_tracker.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/session_update_tracker.h:35, from src/mongo/db/repl/session_update_tracker.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/repl/session_update_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/repl/session_update_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/session_update_tracker.h:35, from src/mongo/db/repl/session_update_tracker.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/text_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/text_match.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/text_match.h:33, from src/mongo/db/exec/text_match.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/repl/session_update_tracker.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.cpp ar rcsTD build/fedora/mongo/db/repl/liboplog_application.a build/fedora/mongo/db/repl/applier_helpers.o build/fedora/mongo/db/repl/oplog_applier.o build/fedora/mongo/db/repl/session_update_tracker.o build/fedora/mongo/db/repl/sync_tail.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_application.a ar rcsTD build/fedora/mongo/db/storage/devnull/libstorage_devnull_core.a build/fedora/mongo/db/storage/devnull/devnull_kv_engine.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/devnull/libstorage_devnull_core.a g++ -o build/fedora/mongo/db/s/config/configsvr_move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_move_chunk_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ g++ -o build/fedora/mongo/db/service_entry_point_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/service_entry_point_mongod.cpp src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/service_entry_point_mongod.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/service_entry_point_mongod.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/transport/service_entry_point.h:32, from src/mongo/transport/service_entry_point_impl.h:37, from src/mongo/db/service_entry_point_mongod.h:32, from src/mongo/db/service_entry_point_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/bson_validate.h:35, from src/mongo/db/dbmessage.h:34, from src/mongo/transport/service_entry_point.h:32, from src/mongo/transport/service_entry_point_impl.h:37, from src/mongo/db/service_entry_point_mongod.h:32, from src/mongo/db/service_entry_point_mongod.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/rollback_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/rollback_impl.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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 instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/libservice_context_d.a build/fedora/mongo/db/service_entry_point_mongod.o Skipping ranlib for thin archive build/fedora/mongo/db/libservice_context_d.a g++ -o build/fedora/mongo/db/auth/authz_manager_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_manager_external_state_d.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authz_manager_external_state.h:38, from src/mongo/db/auth/authz_manager_external_state_local.h:35, from src/mongo/db/auth/authz_manager_external_state_d.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/auth/authz_manager_external_state_d.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/auth/authz_manager_external_state_d.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authz_manager_external_state.h:38, from src/mongo/db/auth/authz_manager_external_state_local.h:35, from src/mongo/db/auth/authz_manager_external_state_d.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/auth/authz_manager_external_state_d.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/auth/authz_manager_external_state_d.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authz_manager_external_state.h:38, from src/mongo/db/auth/authz_manager_external_state_local.h:35, from src/mongo/db/auth/authz_manager_external_state_d.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/repl/rollback_impl.h:32, from src/mongo/db/repl/rollback_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/auth/authz_manager_external_state_d.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/write_commands/write_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/write_commands/write_commands.cpp g++ -o build/fedora/mongo/db/exec/idhack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/idhack.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/write_commands/write_commands.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/write_commands/write_commands.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/db/commands/write_commands/write_commands.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/write_commands/write_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.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_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/write_commands/write_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/bson/mutable/const_element.h:30, from src/mongo/bson/mutable/document.h:34, from src/mongo/db/commands/write_commands/write_commands.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:149:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MatchExpression*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:162:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec::MetaProjection, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:173:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/exec/projection.h:134:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/idhack.h:33, from src/mongo/db/exec/idhack.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/write_commands/write_commands.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/index/index_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/index_access_method.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/index/btree_key_generator.h:35, from src/mongo/db/index/btree_access_method.h:33, from src/mongo/db/index/index_access_method.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/index/index_access_method.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/index/index_access_method.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/index/btree_key_generator.h:35, from src/mongo/db/index/btree_access_method.h:33, from src/mongo/db/index/index_access_method.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/index/index_access_method.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/index/index_access_method.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/index/btree_key_generator.h:35, from src/mongo/db/index/btree_access_method.h:33, from src/mongo/db/index/index_access_method.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/catalog/libindex_catalog_entry.a build/fedora/mongo/db/catalog/index_catalog_entry.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libindex_catalog_entry.a g++ -o build/fedora/mongo/db/s/config/configsvr_add_shard_to_zone_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_to_zone_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_to_zone_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/index/index_access_method.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/views/libviews_mongod.a build/fedora/mongo/db/views/durable_view_catalog.o Skipping ranlib for thin archive build/fedora/mongo/db/views/libviews_mongod.a g++ -o build/fedora/mongo/db/storage/mmap_v1/compress.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/compress.cpp ar rcsTD build/fedora/mongo/db/storage/libstorage_file_util.a build/fedora/mongo/db/storage/storage_file_util.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libstorage_file_util.a g++ -o build/fedora/mongo/db/free_mon/free_mon_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_op_observer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.h:32, from src/mongo/db/free_mon/free_mon_op_observer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.h:32, from src/mongo/db/free_mon/free_mon_op_observer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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: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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.h:32, from src/mongo/db/free_mon/free_mon_op_observer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/sessions_collection_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/sessions_collection_standalone.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/rslog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/rslog.cpp ar rcsTD build/fedora/mongo/db/repl/librslog.a build/fedora/mongo/db/repl/rslog.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librslog.a g++ -o build/fedora/mongo/db/exec/limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/limit.cpp g++ -o build/fedora/mongo/db/startup_warnings_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/startup_warnings_mongod.cpp g++ -o build/fedora/mongo/db/commands/index_filter_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/index_filter_commands.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/index_filter_commands.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/curop_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/curop_metrics.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/index_filter_commands.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/index_filter_commands.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/index_filter_commands.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/index_filter_commands.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/index_filter_commands.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/commands/index_filter_commands.cpp:39: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_metrics.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_metrics.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/commands/server_status_metric.h:35, from src/mongo/db/curop_metrics.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_metrics.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_metrics.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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/commands/server_status_metric.h:35, from src/mongo/db/curop_metrics.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/index_filter_commands.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/curop_metrics.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libcurop_metrics.a build/fedora/mongo/db/curop_metrics.o Skipping ranlib for thin archive build/fedora/mongo/db/libcurop_metrics.a g++ -o build/fedora/mongo/db/storage/journal_listener.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/journal_listener.cpp ar rcsTD build/fedora/mongo/db/storage/libjournal_listener.a build/fedora/mongo/db/storage/journal_listener.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libjournal_listener.a g++ -o build/fedora/mongo/db/s/flush_database_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/flush_database_cache_updates_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/flush_database_cache_updates_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/flush_database_cache_updates_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/flush_database_cache_updates_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/flush_database_cache_updates_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/flush_database_cache_updates_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/mmap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/mmap.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/flush_database_cache_updates_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/namespace_string.h:36, from src/mongo/db/client.h:43, from src/mongo/db/storage/mmap_v1/mmap.h:35, from src/mongo/db/storage/mmap_v1/mmap.cpp:34: In function 'strncpy', inlined from 'mongo::ThreadSafeString::operator=(mongo::StringData)' at src/mongo/util/thread_safe_string.h:64:16, inlined from 'mongo::ProgressMeter::ProgressMeter(unsigned long long, int, int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >)' at src/mongo/util/progress_meter.h:48:28, inlined from 'mongo::MongoFile::closeAllFiles(mongo::OperationContext*, std::__cxx11::basic_stringstream, std::allocator >&)' at src/mongo/db/storage/mmap_v1/mmap.cpp:170:76: /usr/include/bits/string_fortified.h:95:34: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/namespace_string.h:36, from src/mongo/db/client.h:43, from src/mongo/db/storage/mmap_v1/mmap.h:35, from src/mongo/db/storage/mmap_v1/mmap.cpp:34: src/mongo/db/storage/mmap_v1/mmap.cpp: In function 'mongo::MongoFile::closeAllFiles(mongo::OperationContext*, std::__cxx11::basic_stringstream, std::allocator >&)': src/mongo/base/string_data.h:78:68: note: length computed here 78 | StringData(const char* str) : StringData(str, str ? std::strlen(str) : 0) {} | ~~~~~~~~~~~^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/mmap_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/mmap_posix.cpp g++ -o build/fedora/mongo/db/catalog/catalog_control.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/catalog_control.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/catalog/catalog_control.h:31, from src/mongo/db/catalog/catalog_control.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/catalog_control.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/catalog_control.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/catalog/catalog_control.h:31, from src/mongo/db/catalog/catalog_control.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/catalog_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/catalog_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/catalog/catalog_control.h:31, from src/mongo/db/catalog/catalog_control.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libmmap.a build/fedora/mongo/db/storage/mmap_v1/mmap.o build/fedora/mongo/db/storage/mmap_v1/mmap_posix.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libmmap.a g++ -o build/fedora/mongo/db/s/set_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/set_shard_version_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::pair >, std::vector > >, mongo::StringMapTraits>': src/mongo/db/catalog/catalog_control.cpp:107:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::pair >, std::vector > >; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/set_shard_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/set_shard_version_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/set_shard_version_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/set_shard_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/set_shard_version_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/catalog_control.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/set_shard_version_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/auth/action_set.h:34, from src/mongo/db/s/set_shard_version_command.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/storage/kv/libkv_engine.a build/fedora/mongo/db/storage/kv/kv_database_catalog_entry.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/kv/libkv_engine.a g++ -o build/fedora/mongo/db/periodic_runner_job_abort_expired_transactions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp g++ -o build/fedora/mongo/db/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/session.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/periodic_runner_job_abort_expired_transactions.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/periodic_runner_job_abort_expired_transactions.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/session.h:34, from src/mongo/db/session.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session.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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/session.h:34, from src/mongo/db/session.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/get_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/get_executor.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, int, mongo::StringMapTraits>': src/mongo/db/session.cpp:92:22: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete_request.h:36, from src/mongo/db/query/get_executor.h:29, from src/mongo/db/query/get_executor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete_request.h:36, from src/mongo/db/query/get_executor.h:29, from src/mongo/db/query/get_executor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/ops/delete_request.h:34, from src/mongo/db/query/get_executor.h:29, from src/mongo/db/query/get_executor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete_request.h:36, from src/mongo/db/query/get_executor.h:29, from src/mongo/db/query/get_executor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete_request.h:36, from src/mongo/db/query/get_executor.h:29, from src/mongo/db/query/get_executor.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/ops/delete_request.h:34, from src/mongo/db/query/get_executor.h:29, from src/mongo/db/query/get_executor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:149:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MatchExpression*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:162:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec::MetaProjection, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:173:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/exec/projection.h:134:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/delete_request.h:36, from src/mongo/db/query/get_executor.h:29, from src/mongo/db/query/get_executor.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libroll_back_local_operations.a build/fedora/mongo/db/repl/roll_back_local_operations.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libroll_back_local_operations.a g++ -o build/fedora/mongo/db/commands/find_and_modify.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/find_and_modify.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/find_and_modify.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/find_and_modify.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/find_and_modify.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/find_and_modify.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/find_and_modify.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/find_and_modify.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/find_and_modify.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/find_and_modify.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp g++ -o build/fedora/mongo/db/ttl_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ttl_collection_cache.cpp ar rcsTD build/fedora/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a g++ -o build/fedora/mongo/db/exec/collection_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/collection_scan.cpp ar rcsTD build/fedora/mongo/db/libttl_collection_cache.a build/fedora/mongo/db/ttl_collection_cache.o Skipping ranlib for thin archive build/fedora/mongo/db/libttl_collection_cache.a g++ -o build/fedora/mongo/db/stats/fill_locker_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/fill_locker_info.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/collection_scan.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/collection_scan.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/exec/collection_scan_common.h:31, from src/mongo/db/exec/collection_scan.h:33, from src/mongo/db/exec/collection_scan.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/collection_scan.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/exec/collection_scan_common.h:31, from src/mongo/db/exec/collection_scan.h:33, from src/mongo/db/exec/collection_scan.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/collection_scan.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/exec/collection_scan_common.h:31, from src/mongo/db/exec/collection_scan.h:33, from src/mongo/db/exec/collection_scan.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/stats/libfill_locker_info.a build/fedora/mongo/db/stats/fill_locker_info.o Skipping ranlib for thin archive build/fedora/mongo/db/stats/libfill_locker_info.a g++ -o build/fedora/mongo/db/repl/dbcheck_idl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/dbcheck_idl.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/collection_scan.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/mmap_v1/paths.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/paths.cpp g++ -o build/fedora/mongo/db/catalog/rename_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/rename_collection.cpp g++ -o build/fedora/mongo/db/catalog/create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/create_collection.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/catalog/rename_collection.h:30, from src/mongo/db/catalog/rename_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/rename_collection.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/rename_collection.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/catalog/rename_collection.h:30, from src/mongo/db/catalog/rename_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/rename_collection.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/rename_collection.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/create_collection.h:32, from src/mongo/db/catalog/create_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/create_collection.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/create_collection.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/create_collection.h:32, from src/mongo/db/catalog/create_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/catalog/rename_collection.h:30, from src/mongo/db/catalog/rename_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/create_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/create_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return 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/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/create_collection.h:32, from src/mongo/db/catalog/create_collection.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/rename_collection.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/uuid_catalog.h:34, from src/mongo/db/catalog/create_collection.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/catalog/capped_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/capped_utils.cpp In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/catalog/create_collection.h:31, from src/mongo/db/catalog/create_collection.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< , std::allocator > >(std::__cxx11::basic_string, std::allocator > const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::createCollectionForApplyOps(mongo::OperationContext*, std::__cxx11::basic_string, std::allocator > const&, mongo::BSONElement const&, mongo::BSONObj const&, mongo::BSONObj const&)::{lambda()#1}::operator()() const' at src/mongo/db/catalog/create_collection.cpp:210:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 424] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/pipeline/document_source_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/document_source_cursor.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/capped_utils.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/capped_utils.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/capped_utils.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/capped_utils.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/capped_utils.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/capped_utils.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/catalog/capped_utils.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/document_source_cursor.cpp: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceCursor::getNext()': src/mongo/db/pipeline/document_source_cursor.cpp:63:21: warning: redundant move in return statement [-Wredundant-move] 63 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_cursor.cpp:63:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog/capped_utils.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/pipeline/document_source_cursor.h:33, from src/mongo/db/pipeline/document_source_cursor.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/catalog/libcatalog_helpers.a build/fedora/mongo/db/catalog/capped_utils.o build/fedora/mongo/db/catalog/coll_mod.o build/fedora/mongo/db/catalog/create_collection.o build/fedora/mongo/db/catalog/drop_collection.o build/fedora/mongo/db/catalog/drop_database.o build/fedora/mongo/db/catalog/drop_indexes.o build/fedora/mongo/db/catalog/rename_collection.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libcatalog_helpers.a g++ -o build/fedora/mongo/db/ops/update_lifecycle_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/update_lifecycle_impl.cpp g++ -o build/fedora/mongo/db/query/stage_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/stage_builder.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/ops/update_lifecycle_impl.h:32, from src/mongo/db/ops/update_lifecycle_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/update_lifecycle_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/update_lifecycle_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/ops/update_lifecycle_impl.h:32, from src/mongo/db/ops/update_lifecycle_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/update_lifecycle_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/update_lifecycle_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/stage_builder.h:33, from src/mongo/db/query/stage_builder.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/stage_builder.h:33, from src/mongo/db/query/stage_builder.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/query/stage_builder.h:31, from src/mongo/db/query/stage_builder.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/ops/update_lifecycle_impl.h:32, from src/mongo/db/ops/update_lifecycle_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/stage_builder.h:33, from src/mongo/db/query/stage_builder.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/stage_builder.h:33, from src/mongo/db/query/stage_builder.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/query/stage_builder.h:31, from src/mongo/db/query/stage_builder.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:149:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MatchExpression*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:162:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec::MetaProjection, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:173:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/exec/projection.h:134:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/ops/update_lifecycle_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/internal_plans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/internal_plans.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/stage_builder.h:33, from src/mongo/db/query/stage_builder.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/query/internal_plans.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/query/internal_plans.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/query/internal_plans.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/query/internal_plans.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/query/internal_plans.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/query/internal_plans.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/skip.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/internal_plans.h:32, from src/mongo/db/query/internal_plans.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ g++ -o build/fedora/mongo/db/query/find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/find.cpp src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/projection_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/projection_exec.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/projection_exec.h:33, from src/mongo/db/exec/projection_exec.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/projection_exec.h:33, from src/mongo/db/exec/projection_exec.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/projection_exec.h:31, from src/mongo/db/exec/projection_exec.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/exec/projection_exec.h:34, from src/mongo/db/exec/projection_exec.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/exec/projection_exec.h:34, from src/mongo/db/exec/projection_exec.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/projection_exec.h:31, from src/mongo/db/exec/projection_exec.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:149:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MatchExpression*, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:162:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MatchExpression*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ProjectionExec::MetaProjection, mongo::StringMapTraits>': src/mongo/db/exec/projection_exec.h:173:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ProjectionExec::MetaProjection; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/exec/projection_exec.h:34, from src/mongo/db/exec/projection_exec.cpp:29: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/client/dbclientinterface.h:33, from src/mongo/db/clientcursor.h:33, from src/mongo/db/query/find.h:33, from src/mongo/db/query/find.cpp:33: In function 'memcpy', inlined from 'mongo::DataType::Handler::unsafeStore(int const&, char*, unsigned int*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned int*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned int)mongo::DataView&' at src/mongo/base/data_view.h:83:30, inlined from 'mongo::QueryResult::View::setResultFlags(int)' at src/mongo/db/dbmessage.h:181:41, inlined from 'mongo::QueryResult::View::setResultFlagsToOk()' at src/mongo/db/dbmessage.h:185:23, inlined from 'mongo::runQuery[abi:cxx11](mongo::OperationContext*, mongo::QueryMessage&, mongo::NamespaceString const&, mongo::Message&)' at src/mongo/db/query/find.cpp:698:39: /usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'memcpy', inlined from 'mongo::DataType::Handler::unsafeStore(int const&, char*, unsigned int*)' at src/mongo/base/data_type.h:96:28, inlined from 'mongo::DataType::unsafeStore(int const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataType::Handler, void>::unsafeStore(mongo::LittleEndian const&, char*, unsigned int*)' at src/mongo/base/data_type_endian.h:113:30, inlined from 'mongo::DataType::unsafeStore >(mongo::LittleEndian const&, char*, unsigned int*)void' at src/mongo/base/data_type.h:156:32, inlined from 'mongo::DataView::write >(mongo::LittleEndian const&, unsigned int)mongo::DataView&' at src/mongo/base/data_view.h:83:30, inlined from 'mongo::QueryResult::View::setResultFlags(int)' at src/mongo/db/dbmessage.h:181:41, inlined from 'mongo::QueryResult::View::setResultFlagsToOk()' at src/mongo/db/dbmessage.h:185:23, inlined from 'mongo::runQuery[abi:cxx11](mongo::OperationContext*, mongo::QueryMessage&, mongo::NamespaceString const&, mongo::Message&)' at src/mongo/db/query/find.cpp:577:30: /usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/exec/fetch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/fetch.cpp g++ -o build/fedora/mongo/db/exec/index_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/index_scan.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/fetch.h:35, from src/mongo/db/exec/fetch.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/fetch.h:35, from src/mongo/db/exec/fetch.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/fetch.h:33, from src/mongo/db/exec/fetch.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/fetch.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/fetch.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/fetch.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/index_scan.h:35, from src/mongo/db/exec/index_scan.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/index_scan.h:35, from src/mongo/db/exec/index_scan.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/index_scan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/fetch.h:33, from src/mongo/db/exec/fetch.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/index_scan.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/index_scan.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/index_scan.h:32, from src/mongo/db/exec/index_scan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/fetch.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/index_scan.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/keep_mutations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/keep_mutations.cpp g++ -o build/fedora/mongo/db/exec/count_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/count_scan.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/keep_mutations.h:34, from src/mongo/db/exec/keep_mutations.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/keep_mutations.h:34, from src/mongo/db/exec/keep_mutations.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/keep_mutations.h:32, from src/mongo/db/exec/keep_mutations.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/count_scan.h:35, from src/mongo/db/exec/count_scan.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/count_scan.h:35, from src/mongo/db/exec/count_scan.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/count_scan.h:32, from src/mongo/db/exec/count_scan.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/count_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/count_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 g++ -o build/fedora/mongo/db/ops/parsed_delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/parsed_delete.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/count_scan.h:32, from src/mongo/db/exec/count_scan.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/concurrency/write_conflict_exception.h:36, from src/mongo/db/exec/count_scan.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/write_stage_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/write_stage_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/ops/parsed_delete.h:33, from src/mongo/db/ops/parsed_delete.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/write_stage_common.h:34, from src/mongo/db/exec/write_stage_common.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/write_stage_common.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/write_stage_common.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/write_stage_common.h:34, from src/mongo/db/exec/write_stage_common.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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 In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, 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::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/working_set.h:34, from src/mongo/db/exec/write_stage_common.h:34, from src/mongo/db/exec/write_stage_common.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/delete.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/write_stage_common.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/delete.h:31, from src/mongo/db/exec/delete.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/sort_key_generator.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/delete.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/delete.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/delete.h:31, from src/mongo/db/exec/delete.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/delete.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/delete.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/delete.h:31, from src/mongo/db/exec/delete.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/exec/sort_key_generator.h:33, from src/mongo/db/exec/sort_key_generator.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort_key_generator.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort_key_generator.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/exec/sort_key_generator.h:33, from src/mongo/db/exec/sort_key_generator.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort_key_generator.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort_key_generator.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/exec/sort_key_generator.h:33, from src/mongo/db/exec/sort_key_generator.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/delete.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort_key_generator.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/oplogstart.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/oplogstart.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/oplogstart.h:34, from src/mongo/db/exec/oplogstart.cpp:29: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/expression_leaf.h:34, from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/oplogstart.h:34, from src/mongo/db/exec/oplogstart.cpp:29: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/exec/oplogstart.h:33, from src/mongo/db/exec/oplogstart.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/exec/collection_scan.h:35, from src/mongo/db/exec/oplogstart.h:34, from src/mongo/db/exec/oplogstart.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/merge_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/merge_sort.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/exec/oplogstart.h:33, from src/mongo/db/exec/oplogstart.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/oplogstart.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/exec/oplogstart.h:33, from src/mongo/db/exec/oplogstart.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/eof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/eof.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/oplogstart.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/cursor_manager.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/cursor_manager.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/cursor_manager.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/cursor_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/cursor_manager.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/cursor_manager.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/fedora/mongo/db/pipeline/pipeline_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/pipeline/pipeline_d.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/clientcursor.h:33, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/cursor_manager.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/pipeline_d.h:34, from src/mongo/db/pipeline/pipeline_d.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/mongo_process_interface.h:42, from src/mongo/db/pipeline/mongo_process_common.h:34, from src/mongo/db/pipeline/pipeline_d.h:38, from src/mongo/db/pipeline/pipeline_d.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/mongo_process_interface.h:42, from src/mongo/db/pipeline/mongo_process_common.h:34, from src/mongo/db/pipeline/pipeline_d.h:38, from src/mongo/db/pipeline/pipeline_d.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/pipeline_d.h:34, from src/mongo/db/pipeline/pipeline_d.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/pipeline/pipeline_d.h:39, from src/mongo/db/pipeline/pipeline_d.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/pipeline/pipeline_d.h:39, from src/mongo/db/pipeline/pipeline_d.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/pipeline/pipeline_d.h:34, from src/mongo/db/pipeline/pipeline_d.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/cursor_manager.h:34, from src/mongo/db/cursor_manager.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/pipeline/pipeline_d.cpp: In static member function 'static mongo::StatusWith > mongo::PipelineD::prepareExecutor(mongo::OperationContext*, mongo::Collection*, const mongo::NamespaceString&, mongo::Pipeline*, const boost::intrusive_ptr&, bool, const boost::intrusive_ptr&, const mongo::DepsTracker&, const mongo::BSONObj&, const mongo::AggregationRequest*, mongo::BSONObj*, mongo::BSONObj*)': src/mongo/db/pipeline/pipeline_d.cpp:443:29: warning: redundant move in return statement [-Wredundant-move] 443 | return std::move(exec); | ~~~~~~~~~^~~~~~ src/mongo/db/pipeline/pipeline_d.cpp:443:29: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/pipeline/pipeline_d.h:39, from src/mongo/db/pipeline/pipeline_d.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/multi_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/multi_plan.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/multi_plan.h:32, from src/mongo/db/exec/multi_plan.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/exec/sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/sort.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/sort.h:34, from src/mongo/db/exec/sort.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/sort.h:34, from src/mongo/db/exec/sort.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/sort.h:34, from src/mongo/db/exec/sort.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/query/plan_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/plan_executor.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/plan_executor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/plan_executor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/plan_executor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/sort.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/plan_executor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/plan_executor.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/db/query/query_solution.h:33, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/plan_executor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/query/plan_executor.cpp: In static member function 'static mongo::StatusWith > mongo::PlanExecutor::make(mongo::OperationContext*, std::unique_ptr, std::unique_ptr, std::unique_ptr, std::unique_ptr, const mongo::Collection*, mongo::NamespaceString, mongo::PlanExecutor::YieldPolicy)': src/mongo/db/query/plan_executor.cpp:214:21: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(exec); | ~~~~~~~~~^~~~~~ src/mongo/db/query/plan_executor.cpp:214:21: note: remove 'std::move' call g++ -o build/fedora/mongo/db/ops/update_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ops/update_result.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/query/plan_executor.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/explain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/explain.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/query/explain.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/query/explain.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/query/explain.h:31, from src/mongo/db/query/explain.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/query/explain.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/query/explain.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/query/explain.h:31, from src/mongo/db/query/explain.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/query/plan_executor.h:34, from src/mongo/db/query/plan_executor.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< , std::allocator > >(std::__cxx11::basic_string, std::allocator > const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::PlanExecutor::executePlan()' at src/mongo/db/query/plan_executor.cpp:703:85: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 482] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/geo_near.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/query/explain.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/exec/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/text.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:31, from src/mongo/db/exec/geo_near.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/text.h:33, from src/mongo/db/exec/text.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/fetch.h:35, from src/mongo/db/exec/text.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/exec/fetch.h:35, from src/mongo/db/exec/text.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/text.h:33, from src/mongo/db/exec/text.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/exec/plan_stats.h:38, from src/mongo/db/exec/plan_stage.h:34, from src/mongo/db/exec/text.h:33, from src/mongo/db/exec/text.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/exec/text_or.h:33, from src/mongo/db/exec/text.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/query/query_yield.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/query/query_yield.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/query_yield.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/query_yield.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/query/query_yield.h:31, from src/mongo/db/query/query_yield.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/query_yield.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/query_yield.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/query/query_yield.h:31, from src/mongo/db/query/query_yield.cpp:30: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/free_mon/free_mon_controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_controller.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/query/query_yield.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libquery_exec.a build/fedora/mongo/db/clientcursor.o build/fedora/mongo/db/cursor_manager.o build/fedora/mongo/db/exec/and_hash.o build/fedora/mongo/db/exec/and_sorted.o build/fedora/mongo/db/exec/cached_plan.o build/fedora/mongo/db/exec/collection_scan.o build/fedora/mongo/db/exec/count.o build/fedora/mongo/db/exec/count_scan.o build/fedora/mongo/db/exec/delete.o build/fedora/mongo/db/exec/distinct_scan.o build/fedora/mongo/db/exec/ensure_sorted.o build/fedora/mongo/db/exec/eof.o build/fedora/mongo/db/exec/fetch.o build/fedora/mongo/db/exec/geo_near.o build/fedora/mongo/db/exec/group.o build/fedora/mongo/db/exec/idhack.o build/fedora/mongo/db/exec/index_iterator.o build/fedora/mongo/db/exec/index_scan.o build/fedora/mongo/db/exec/keep_mutations.o build/fedora/mongo/db/exec/limit.o build/fedora/mongo/db/exec/merge_sort.o build/fedora/mongo/db/exec/multi_iterator.o build/fedora/mongo/db/exec/multi_plan.o build/fedora/mongo/db/exec/near.o build/fedora/mongo/db/exec/oplogstart.o build/fedora/mongo/db/exec/or.o build/fedora/mongo/db/exec/pipeline_proxy.o build/fedora/mongo/db/exec/plan_stage.o build/fedora/mongo/db/exec/projection.o build/fedora/mongo/db/exec/projection_exec.o build/fedora/mongo/db/exec/queued_data_stage.o build/fedora/mongo/db/exec/shard_filter.o build/fedora/mongo/db/exec/skip.o build/fedora/mongo/db/exec/sort.o build/fedora/mongo/db/exec/sort_key_generator.o build/fedora/mongo/db/exec/subplan.o build/fedora/mongo/db/exec/text.o build/fedora/mongo/db/exec/text_match.o build/fedora/mongo/db/exec/text_or.o build/fedora/mongo/db/exec/update.o build/fedora/mongo/db/exec/working_set_common.o build/fedora/mongo/db/exec/write_stage_common.o build/fedora/mongo/db/ops/parsed_delete.o build/fedora/mongo/db/ops/parsed_update.o build/fedora/mongo/db/ops/update_lifecycle_impl.o build/fedora/mongo/db/ops/update_result.o build/fedora/mongo/db/query/explain.o build/fedora/mongo/db/query/find.o build/fedora/mongo/db/pipeline/document_source_cursor.o build/fedora/mongo/db/pipeline/pipeline_d.o build/fedora/mongo/db/query/get_executor.o build/fedora/mongo/db/query/internal_plans.o build/fedora/mongo/db/query/plan_executor.o build/fedora/mongo/db/query/plan_ranker.o build/fedora/mongo/db/query/plan_yield_policy.o build/fedora/mongo/db/query/query_yield.o build/fedora/mongo/db/query/stage_builder.o Skipping ranlib for thin archive build/fedora/mongo/db/libquery_exec.a ar rcsTD build/fedora/mongo/db/librw_concern_d.a build/fedora/mongo/db/read_concern.o build/fedora/mongo/db/write_concern.o Skipping ranlib for thin archive build/fedora/mongo/db/librw_concern_d.a g++ -o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:34, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.h:37, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ g++ -o build/fedora/mongo/db/s/split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/split_chunk_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:34, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.h:37, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:34, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.h:37, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:51: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:149:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 149 | memset(this, 0, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:158:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 158 | memcpy(this, &e, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_chunk_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_chunk_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/s/split_chunk_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_chunk_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_chunk_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/s/split_chunk_command.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/split_chunk_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.h:34, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/catalog/collection_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/collection_impl.cpp g++ -o build/fedora/mongo/db/free_mon/free_mon_commands_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/free_mon/free_mon_commands_gen.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:31, from src/mongo/db/catalog/collection_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:31, from src/mongo/db/catalog/collection_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:31, from src/mongo/db/catalog/collection_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/free_mon/free_mon_commands_gen.h:16, from build/fedora/mongo/db/free_mon/free_mon_commands_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/free_mon/free_mon_commands_gen.h:16, from build/fedora/mongo/db/free_mon/free_mon_commands_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UUID, mongo::StringMapTraits>': src/mongo/db/catalog/namespace_uuid_cache.h:86:23: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/concurrency/libwrite_conflict_exception.a build/fedora/mongo/db/concurrency/write_conflict_exception.o Skipping ranlib for thin archive build/fedora/mongo/db/concurrency/libwrite_conflict_exception.a g++ -o build/fedora/mongo/db/exec/scoped_timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/exec/scoped_timer.cpp ar rcsTD build/fedora/mongo/db/exec/libscoped_timer.a build/fedora/mongo/db/exec/scoped_timer.o Skipping ranlib for thin archive build/fedora/mongo/db/exec/libscoped_timer.a g++ -o build/fedora/mongo/db/storage/mmap_v1/logfile.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/logfile.cpp ar rcsTD build/fedora/mongo/db/repl/librollback_source_impl.a build/fedora/mongo/db/repl/rollback_source_impl.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librollback_source_impl.a ar rcsTD build/fedora/mongo/db/catalog/libindex_create.a build/fedora/mongo/db/catalog/index_create.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libindex_create.a g++ -o build/fedora/mongo/db/session_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/session_catalog.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session_catalog.h:33, from src/mongo/db/session_catalog.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session_catalog.h:33, from src/mongo/db/session_catalog.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/session_catalog.h:32, from src/mongo/db/session_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session_catalog.h:33, from src/mongo/db/session_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session_catalog.h:33, from src/mongo/db/session_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/session_catalog.h:32, from src/mongo/db/session_catalog.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/repl/abstract_oplog_fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/abstract_oplog_fetcher.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/abstract_oplog_fetcher.h:33, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/abstract_oplog_fetcher.h:33, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/client/fetcher.h:39, from src/mongo/db/repl/abstract_oplog_fetcher.h:33, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/abstract_oplog_fetcher.h:33, from src/mongo/db/repl/abstract_oplog_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/abstract_oplog_fetcher.h:33, from src/mongo/db/repl/abstract_oplog_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/client/fetcher.h:39, from src/mongo/db/repl/abstract_oplog_fetcher.h:33, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/single_transaction_stats.h:31, from src/mongo/db/session.h:42, from src/mongo/db/session_catalog.h:33, from src/mongo/db/session_catalog.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/abstract_oplog_fetcher.h:33, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/transaction_history_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/transaction_history_iterator.cpp ar rcsTD build/fedora/mongo/db/repl/libabstract_oplog_fetcher.a build/fedora/mongo/db/repl/abstract_oplog_fetcher.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libabstract_oplog_fetcher.a g++ -o build/fedora/mongo/db/transactions_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/transactions_stats_gen.cpp g++ -o build/fedora/mongo/db/catalog_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog_raii.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/transactions_stats_gen.h:16, from build/fedora/mongo/db/transactions_stats_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/transactions_stats_gen.h:16, from build/fedora/mongo/db/transactions_stats_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/server_transactions_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/server_transactions_metrics.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/catalog_raii.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/server_transactions_metrics.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/server_transactions_metrics.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/server_transactions_metrics.h:31, from src/mongo/db/server_transactions_metrics.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/server_transactions_metrics.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/server_transactions_metrics.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context.h:36, from src/mongo/db/server_transactions_metrics.h:31, from src/mongo/db/server_transactions_metrics.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/catalog_raii.h:31, from src/mongo/db/catalog_raii.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongoutils::str::stream::operator<< (mongo::StringData const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::AutoGetDb::AutoGetDb(mongo::OperationContext*, mongo::StringData, mongo::LockMode, mongo::Date_t)::{lambda()#1}::operator()() const' at src/mongo/db/catalog_raii.cpp:61:47, inlined from 'mongo::AutoGetDb::AutoGetDb(mongo::OperationContext*, mongo::StringData, mongo::LockMode, mongo::Date_t)' at src/mongo/db/catalog_raii.cpp:63:8: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 503] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/config/sharding_catalog_manager_database_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/server_transactions_metrics.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libcatalog_raii.a build/fedora/mongo/db/catalog_raii.o build/fedora/mongo/db/retryable_writes_stats.o build/fedora/mongo/db/server_transactions_metrics.o build/fedora/mongo/db/session.o build/fedora/mongo/db/session_catalog.o build/fedora/mongo/db/single_transaction_stats.o build/fedora/mongo/db/transaction_history_iterator.o build/fedora/mongo/db/session_txn_record_gen.o build/fedora/mongo/db/transactions_stats_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/libcatalog_raii.a ar rcsTD build/fedora/mongo/s/client/librs_local_client.a build/fedora/mongo/s/client/rs_local_client.o Skipping ranlib for thin archive build/fedora/mongo/s/client/librs_local_client.a ar rcsTD build/fedora/mongo/db/storage/libstorage_engine_metadata.a build/fedora/mongo/db/storage/storage_engine_metadata.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libstorage_engine_metadata.a g++ -o build/fedora/mongo/db/catalog/index_catalog_entry_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_catalog_entry_impl.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/catalog/index_catalog_entry_impl.h:39, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/catalog/index_catalog_entry_impl.h:39, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry_impl.h:35, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry_impl.h:35, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/commands/feature_compatibility_version.h:34, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection_info_cache_impl.h:31, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/status_with.h:36, from src/mongo/db/s/config/sharding_catalog_manager.h:32, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/catalog/collection_compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/collection_compact.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection_impl.h:31, from src/mongo/db/catalog/collection_compact.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_compact.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_compact.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection_impl.h:31, from src/mongo/db/catalog/collection_compact.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_compact.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_compact.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection_impl.h:31, from src/mongo/db/catalog/collection_compact.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/catalog/database_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/database_impl.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/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/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/collection_impl.h:32, from src/mongo/db/catalog/collection_compact.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/catalog/database.h:37, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UUID, mongo::StringMapTraits>': src/mongo/db/catalog/namespace_uuid_cache.h:86:23: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ChunkVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:184:29: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ChunkVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::DatabaseVersion, mongo::StringMapTraits>': src/mongo/db/s/operation_sharding_state.h:185:32: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::DatabaseVersion; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/catalog/index_consistency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/index_consistency.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_catalog_entry.h:34, from src/mongo/db/catalog/index_consistency.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/index_consistency.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/index_consistency.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_catalog_entry.h:34, from src/mongo/db/catalog/index_consistency.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/index_consistency.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/index_consistency.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 In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_impl.h:31, from src/mongo/db/catalog/database_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59: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:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/catalog/collection_options.h:36, from src/mongo/db/catalog/collection_catalog_entry.h:34, from src/mongo/db/catalog/index_consistency.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/catalog/index_consistency.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/catalog/private/record_store_validate_adaptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/private/record_store_validate_adaptor.cpp g++ -o build/fedora/mongo/db/catalog/database_holder_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/database_holder_impl.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/catalog/private/record_store_validate_adaptor.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/catalog/private/record_store_validate_adaptor.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/ordering.h:32, from src/mongo/db/catalog/index_catalog_entry.h:36, from src/mongo/db/catalog/index_catalog.h:36, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:31, from src/mongo/db/catalog/private/record_store_validate_adaptor.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder_impl.h:31, from src/mongo/db/catalog/database_holder_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Database*, mongo::StringMapTraits>': src/mongo/db/catalog/database_holder_impl.h:93:9: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Database*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Database*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Database*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Database*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_holder_impl.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_holder_impl.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder_impl.h:31, from src/mongo/db/catalog/database_holder_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_holder_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_holder_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/catalog/database_holder.h:36, from src/mongo/db/catalog/database_holder_impl.h:31, from src/mongo/db/catalog/database_holder_impl.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UUID, mongo::StringMapTraits>': src/mongo/db/catalog/namespace_uuid_cache.h:86:23: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UUID; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/catalog/health_log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/catalog/health_log.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/catalog/database_holder_impl.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/concurrency/deferred_writer.h:31, from src/mongo/db/catalog/health_log.h:32, from src/mongo/db/catalog/health_log.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/catalog/libcatalog_impl.a build/fedora/mongo/db/catalog/catalog_control.o build/fedora/mongo/db/catalog/collection_compact.o build/fedora/mongo/db/catalog/collection_impl.o build/fedora/mongo/db/catalog/collection_info_cache_impl.o build/fedora/mongo/db/catalog/database_holder_impl.o build/fedora/mongo/db/catalog/database_impl.o build/fedora/mongo/db/catalog/index_catalog_entry_impl.o build/fedora/mongo/db/catalog/index_catalog_impl.o build/fedora/mongo/db/catalog/index_consistency.o build/fedora/mongo/db/catalog/index_create_impl.o build/fedora/mongo/db/catalog/private/record_store_validate_adaptor.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libcatalog_impl.a ar rcsTD build/fedora/mongo/db/catalog/libcollection_info_cache.a build/fedora/mongo/db/catalog/collection_info_cache.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libcollection_info_cache.a g++ -o build/fedora/mongo/db/s/config/namespace_serializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/namespace_serializer.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/s/config/namespace_serializer.h:37, from src/mongo/db/s/config/namespace_serializer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/catalog/libhealth_log.a build/fedora/mongo/db/catalog/health_log.o build/fedora/mongo/db/catalog/health_log_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/catalog/libhealth_log.a ar rcsTD build/fedora/mongo/db/libperiodic_runner_job_abort_expired_transactions.a build/fedora/mongo/db/periodic_runner_job_abort_expired_transactions.o Skipping ranlib for thin archive build/fedora/mongo/db/libperiodic_runner_job_abort_expired_transactions.a ar rcsTD build/fedora/mongo/db/repl/liboplogreader.a build/fedora/mongo/db/repl/oplogreader.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplogreader.a g++ -o build/fedora/mongo/db/repl/oplog_interface_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_interface_local.cpp g++ -o build/fedora/mongo/db/cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/cloner.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog_interface.h:37, from src/mongo/db/repl/oplog_interface_local.h:31, from src/mongo/db/repl/oplog_interface_local.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/oplog_interface_local.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/oplog_interface_local.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog_interface.h:37, from src/mongo/db/repl/oplog_interface_local.h:31, from src/mongo/db/repl/oplog_interface_local.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/oplog_interface_local.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/oplog_interface_local.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/oplog_interface.h:37, from src/mongo/db/repl/oplog_interface_local.h:31, from src/mongo/db/repl/oplog_interface_local.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/cloner.h:37, from src/mongo/db/cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/cloner.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/cloner.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/cloner.h:37, from src/mongo/db/cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/cloner.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/cloner.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/db/cloner.h:37, from src/mongo/db/cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/repl/oplog_interface_local.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/dbcheck.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/cloner.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/repl/dbcheck.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repl/dbcheck.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repl/dbcheck.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/repl/dbcheck.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/repl/dbcheck.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/repl/dbcheck.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/repl/dbcheck_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc build/fedora/mongo/db/repl/dbcheck_gen.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/dbcheck_gen.h:16, from build/fedora/mongo/db/repl/dbcheck_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/repl/dbcheck_gen.h:16, from build/fedora/mongo/db/repl/dbcheck_gen.cpp:9: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/file_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/file_allocator.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from build/fedora/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/libdbcheck.a build/fedora/mongo/db/repl/dbcheck.o build/fedora/mongo/db/repl/dbcheck_idl.o build/fedora/mongo/db/repl/dbcheck_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libdbcheck.a g++ -o build/fedora/mongo/db/commands/kill_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/kill_op.cpp g++ -o build/fedora/mongo/db/commands/rename_collection_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/rename_collection_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/kill_op.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/db/commands/rename_collection_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/rename_collection_cmd.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/rename_collection_cmd.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/db/commands/rename_collection_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/rename_collection_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/rename_collection_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/commands/kill_op.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/dbclientcursor.h:35, from src/mongo/db/commands/rename_collection_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/kill_op.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/storage_engine_lock_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_engine_lock_file.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/rename_collection_cmd.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/index/libindex_access_method.a build/fedora/mongo/db/index/index_access_method.o Skipping ranlib for thin archive build/fedora/mongo/db/index/libindex_access_method.a ar rcsTD build/fedora/mongo/db/repl/librollback_impl.a build/fedora/mongo/db/repl/rollback_impl.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librollback_impl.a g++ -o build/fedora/mongo/db/index/haystack_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/haystack_access_method.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/repair_database_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/repair_database_interface.cpp ar rcsTD build/fedora/mongo/db/storage/mmap_v1/librepair_database_interface.a build/fedora/mongo/db/storage/mmap_v1/repair_database_interface.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/librepair_database_interface.a g++ -o build/fedora/mongo/db/s/move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/move_chunk_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/index/index_access_method.h:35, from src/mongo/db/index/haystack_access_method.h:32, from src/mongo/db/index/haystack_access_method.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/haystack_access_method_internal.h:34, from src/mongo/db/index/haystack_access_method.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/haystack_access_method_internal.h:34, from src/mongo/db/index/haystack_access_method.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/index/index_access_method.h:35, from src/mongo/db/index/haystack_access_method.h:32, from src/mongo/db/index/haystack_access_method.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/haystack_access_method_internal.h:34, from src/mongo/db/index/haystack_access_method.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/haystack_access_method_internal.h:34, from src/mongo/db/index/haystack_access_method.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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/client/remote_command_targeter.h:32, from src/mongo/db/s/move_chunk_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/index/index_access_method.h:35, from src/mongo/db/index/haystack_access_method.h:32, from src/mongo/db/index/haystack_access_method.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/net/hostandport.h:35, from src/mongo/client/remote_command_targeter.h:32, from src/mongo/db/s/move_chunk_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_chunk_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/index/haystack_access_method_internal.h:34, from src/mongo/db/index/haystack_access_method.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libsystem_index.a build/fedora/mongo/db/system_index.o Skipping ranlib for thin archive build/fedora/mongo/db/libsystem_index.a ar rcsTD build/fedora/mongo/db/storage/mmap_v1/liblogfile.a build/fedora/mongo/db/storage/mmap_v1/logfile.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/liblogfile.a g++ -o build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/storage/journal_listener.h:31, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.h:35, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.h:121:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/free_mon/libfree_mon_mongod.a build/fedora/mongo/db/free_mon/free_mon_commands.o build/fedora/mongo/db/free_mon/free_mon_mongod.o build/fedora/mongo/db/free_mon/free_mon_options.o build/fedora/mongo/db/free_mon/free_mon_status.o build/fedora/mongo/db/free_mon/http_client_curl.o Skipping ranlib for thin archive build/fedora/mongo/db/free_mon/libfree_mon_mongod.a g++ -o build/fedora/mongo/db/mongod_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/mongod_options.cpp ar rcsTD build/fedora/mongo/db/libkill_sessions_local.a build/fedora/mongo/db/kill_sessions_local.o Skipping ranlib for thin archive build/fedora/mongo/db/libkill_sessions_local.a g++ -o build/fedora/mongo/db/commands/explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/explain_cmd.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/db.h:36, from src/mongo/db/mongod_options.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/db.h:36, from src/mongo/db/mongod_options.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/repl_settings.h:33, from src/mongo/db/mongod_options.h:34, from src/mongo/db/mongod_options.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/db.h:36, from src/mongo/db/mongod_options.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/db.h:36, from src/mongo/db/mongod_options.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_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/repl/repl_settings.h:33, from src/mongo/db/mongod_options.h:34, from src/mongo/db/mongod_options.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/curop.h:35, from src/mongo/db/db.h:36, from src/mongo/db/mongod_options.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/platform/atomic_word.h:31, from src/mongo/base/counter.h:33, from src/mongo/db/commands.h:35, from src/mongo/db/command_can_run_here.h:33, from src/mongo/db/commands/explain_cmd.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/index/btree_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/btree_access_method.cpp g++ -o build/fedora/mongo/db/index/2d_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/2d_access_method.cpp g++ -o build/fedora/mongo/db/index/s2_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/s2_access_method.cpp g++ -o build/fedora/mongo/db/index/fts_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/index/fts_access_method.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/fts/fts_util.h:35, from src/mongo/db/fts/fts_language.h:37, from src/mongo/db/fts/fts_spec.h:36, from src/mongo/db/index/fts_access_method.h:32, from src/mongo/db/index/fts_access_method.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, bool, mongo::StringMapTraits>': src/mongo/db/fts/stop_words.h:62:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = bool; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/index/s2_access_method.h:31, from src/mongo/db/index/s2_access_method.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/extent_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/extent_manager.cpp ar rcsTD build/fedora/mongo/db/index/libindex_access_methods.a build/fedora/mongo/db/index/2d_access_method.o build/fedora/mongo/db/index/btree_access_method.o build/fedora/mongo/db/index/fts_access_method.o build/fedora/mongo/db/index/hash_access_method.o build/fedora/mongo/db/index/haystack_access_method.o build/fedora/mongo/db/index/s2_access_method.o Skipping ranlib for thin archive build/fedora/mongo/db/index/libindex_access_methods.a g++ -o build/fedora/mongo/db/storage/mmap_v1/extent.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/extent.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/dur_commitjob.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/dur_commitjob.cpp ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libextent.a build/fedora/mongo/db/storage/mmap_v1/extent.o build/fedora/mongo/db/storage/mmap_v1/extent_manager.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libextent.a g++ -o build/fedora/mongo/db/s/op_observer_sharding_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/op_observer_sharding_impl.cpp In file included from src/mongo/db/storage/mmap_v1/dur_commitjob.cpp:35: src/mongo/db/storage/mmap_v1/dur_commitjob.h: In instantiation of 'void mongo::dur::Already::clear() [with int Prime = 127]': src/mongo/db/storage/mmap_v1/dur_commitjob.cpp:112:24: required from here src/mongo/db/storage/mmap_v1/dur_commitjob.h:99:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::dur::Already<127>' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 99 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/dur_commitjob.h:90:7: note: 'class mongo::dur::Already<127>' declared here 90 | class Already { | ^~~~~~~ ar rcsTD build/fedora/mongo/db/libmongod_options.a build/fedora/mongo/db/mongod_options.o Skipping ranlib for thin archive build/fedora/mongo/db/libmongod_options.a g++ -o build/fedora/mongo/db/storage/mmap_v1/dur_journal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/dur_journal.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/bson/bsonobj_comparator_interface.h:32, from src/mongo/bson/simple_bsonobj_comparator.h:34, from src/mongo/db/op_observer.h:34, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/system/detail/generic_category_message.hpp:15, from /usr/include/boost/system/detail/generic_category.hpp:14, from /usr/include/boost/system/detail/error_condition.hpp:14, from /usr/include/boost/system/detail/error_code.hpp:14, from /usr/include/boost/system/error_code.hpp:13, from /usr/include/boost/filesystem/path_traits.hpp:22, from /usr/include/boost/filesystem/path.hpp:26, from /usr/include/boost/filesystem.hpp:16, from src/mongo/db/storage/mmap_v1/dur_journal.cpp:37: In function 'strncpy', inlined from 'mongo::ThreadSafeString::operator=(mongo::StringData)' at src/mongo/util/thread_safe_string.h:64:16, inlined from 'mongo::ProgressMeter::ProgressMeter(unsigned long long, int, int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >)' at src/mongo/util/progress_meter.h:48:28, inlined from 'mongo::dur::preallocateFile(boost::filesystem::path, unsigned long long)' at src/mongo/db/storage/mmap_v1/dur_journal.cpp:361:87: /usr/include/bits/string_fortified.h:95:34: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/initializer_function.h:30, from src/mongo/base/global_initializer_registerer.h:34, from src/mongo/base/init.h:45, from src/mongo/db/storage/mmap_v1/dur_journal.cpp:40: src/mongo/db/storage/mmap_v1/dur_journal.cpp: In function 'mongo::dur::preallocateFile(boost::filesystem::path, unsigned long long)': src/mongo/base/string_data.h:78:68: note: length computed here 78 | StringData(const char* str) : StringData(str, str ? std::strlen(str) : 0) {} | ~~~~~~~~~~~^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/system/detail/generic_category_message.hpp:15, from /usr/include/boost/system/detail/generic_category.hpp:14, from /usr/include/boost/system/detail/error_condition.hpp:14, from /usr/include/boost/system/detail/error_code.hpp:14, from /usr/include/boost/system/error_code.hpp:13, from /usr/include/boost/filesystem/path_traits.hpp:22, from /usr/include/boost/filesystem/path.hpp:26, from /usr/include/boost/filesystem.hpp:16, from src/mongo/db/storage/mmap_v1/dur_journal.cpp:37: In function 'strncpy', inlined from 'mongo::ThreadSafeString::operator=(mongo::StringData)' at src/mongo/util/thread_safe_string.h:64:16, inlined from 'mongo::ProgressMeter::setName(std::__cxx11::basic_string, std::allocator >)' at src/mongo/util/progress_meter.h:80:28, inlined from 'mongo::dur::preallocateFile(boost::filesystem::path, unsigned long long)' at src/mongo/db/storage/mmap_v1/dur_journal.cpp:362:14: /usr/include/bits/string_fortified.h:95:34: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/base/initializer_function.h:30, from src/mongo/base/global_initializer_registerer.h:34, from src/mongo/base/init.h:45, from src/mongo/db/storage/mmap_v1/dur_journal.cpp:40: src/mongo/db/storage/mmap_v1/dur_journal.cpp: In function 'mongo::dur::preallocateFile(boost::filesystem::path, unsigned long long)': src/mongo/base/string_data.h:78:68: note: length computed here 78 | StringData(const char* str) : StringData(str, str ? std::strlen(str) : 0) {} | ~~~~~~~~~~~^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from /usr/include/boost/system/detail/generic_category_message.hpp:15, from /usr/include/boost/system/detail/generic_category.hpp:14, from /usr/include/boost/system/detail/error_condition.hpp:14, from /usr/include/boost/system/detail/error_code.hpp:14, from /usr/include/boost/system/error_code.hpp:13, from /usr/include/boost/filesystem/path_traits.hpp:22, from /usr/include/boost/filesystem/path.hpp:26, from /usr/include/boost/filesystem.hpp:16, from src/mongo/db/storage/mmap_v1/dur_journal.cpp:37: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::appendIntegral(int, int)mongo::StringBuilderImpl&' at src/mongo/bson/util/builder.h:520:19, inlined from 'mongo::StringBuilderImpl::operator<<(int)' at src/mongo/bson/util/builder.h:402:30, inlined from 'mongoutils::str::stream::operator<< (int const&)mongoutils::str::stream&' at src/mongo/util/mongoutils/str.h:66:12, inlined from 'mongo::dur::preallocPath(int)' at src/mongo/db/storage/mmap_v1/dur_journal.cpp:381:49: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 503] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/op_observer.h:35, from src/mongo/db/op_observer_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.h:31, from src/mongo/db/s/op_observer_sharding_impl.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/config/configsvr_remove_shard_from_zone_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/s/libop_observer_sharding_impl.a build/fedora/mongo/db/s/op_observer_sharding_impl.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libop_observer_sharding_impl.a g++ -o build/fedora/mongo/db/s/merge_chunks_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/merge_chunks_command.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/merge_chunks_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/merge_chunks_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/merge_chunks_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/merge_chunks_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/merge_chunks_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/merge_chunks_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 g++ -o build/fedora/mongo/db/s/config/configsvr_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_move_primary_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/merge_chunks_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/merge_chunks_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/client/dbclientinterface.h:33, from src/mongo/client/connpool.h:35, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -o build/fedora/mongo/db/s/config/configsvr_create_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_create_database_command.cpp g++ -o build/fedora/mongo/db/s/move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/move_primary_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_database_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_database_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_create_database_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_database_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_database_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/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_primary_command.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_primary_command.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/move_primary_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_primary_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_primary_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_create_database_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/move_primary_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_database_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/move_primary_command.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/config/configsvr_split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_split_chunk_command.cpp g++ -o build/fedora/mongo/db/s/config/configsvr_update_zone_key_range_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_split_chunk_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_split_chunk_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_update_zone_key_range_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_update_zone_key_range_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/config/configsvr_control_balancer_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_control_balancer_command.cpp g++ -o build/fedora/mongo/db/s/config/configsvr_shard_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_shard_collection_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_control_balancer_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_shard_collection_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_control_balancer_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_shard_collection_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonelement_comparator_interface.h:32, from src/mongo/bson/simple_bsonelement_comparator.h:31, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/config/configsvr_remove_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_remove_shard_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/clone_collection_options_from_primary_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp g++ -o build/fedora/mongo/db/s/config/configsvr_create_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_create_collection_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_collection_options_from_primary_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_collection_options_from_primary_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_collection_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_collection_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/audit.h:37, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/config/configsvr_commit_chunk_migration_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/cleanup_orphaned_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/cleanup_orphaned_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_chunk_migration_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_chunk_migration_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, 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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/s/config/configsvr_drop_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/configsvr_drop_database_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_database_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_database_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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:377:21: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/s/catalog_cache.h:379:24: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/s/sharding_state_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/sharding_state_command.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/sharding_state_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/sharding_state_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/s/sharding_state_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/sharding_state_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/sharding_state_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/s/sharding_state_command.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/s/client/libshard_local.a build/fedora/mongo/s/client/shard_local.o Skipping ranlib for thin archive build/fedora/mongo/s/client/libshard_local.a ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libpaths.a build/fedora/mongo/db/storage/mmap_v1/paths.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libpaths.a ar rcsTD build/fedora/mongo/db/repl/librollback_checker.a build/fedora/mongo/db/repl/rollback_checker.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librollback_checker.a ar rcsTD build/fedora/mongo/db/exec/libstagedebug_cmd.a build/fedora/mongo/db/exec/stagedebug_cmd.o Skipping ranlib for thin archive build/fedora/mongo/db/exec/libstagedebug_cmd.a g++ -o build/fedora/mongo/db/free_mon/free_mon_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_queue.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/s/sharding_state_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/storage_repair_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_repair_observer.cpp ar rcsTD build/fedora/mongo/db/s/libcommands_db_s.a build/fedora/mongo/db/s/check_sharding_index_command.o build/fedora/mongo/db/s/cleanup_orphaned_cmd.o build/fedora/mongo/db/s/clone_catalog_data_command.o build/fedora/mongo/db/s/clone_collection_options_from_primary_shard_cmd.o build/fedora/mongo/db/s/config/configsvr_add_shard_command.o build/fedora/mongo/db/s/config/configsvr_add_shard_to_zone_command.o build/fedora/mongo/db/s/config/configsvr_commit_chunk_migration_command.o build/fedora/mongo/db/s/config/configsvr_commit_move_primary_command.o build/fedora/mongo/db/s/config/configsvr_control_balancer_command.o build/fedora/mongo/db/s/config/configsvr_create_collection_command.o build/fedora/mongo/db/s/config/configsvr_create_database_command.o build/fedora/mongo/db/s/config/configsvr_drop_collection_command.o build/fedora/mongo/db/s/config/configsvr_drop_database_command.o build/fedora/mongo/db/s/config/configsvr_enable_sharding_command.o build/fedora/mongo/db/s/config/configsvr_merge_chunk_command.o build/fedora/mongo/db/s/config/configsvr_move_chunk_command.o build/fedora/mongo/db/s/config/configsvr_move_primary_command.o build/fedora/mongo/db/s/config/configsvr_remove_shard_command.o build/fedora/mongo/db/s/config/configsvr_remove_shard_from_zone_command.o build/fedora/mongo/db/s/config/configsvr_shard_collection_command.o build/fedora/mongo/db/s/config/configsvr_split_chunk_command.o build/fedora/mongo/db/s/config/configsvr_update_zone_key_range_command.o build/fedora/mongo/db/s/flush_database_cache_updates_command.o build/fedora/mongo/db/s/flush_routing_table_cache_updates_command.o build/fedora/mongo/db/s/get_database_version_command.o build/fedora/mongo/db/s/get_shard_version_command.o build/fedora/mongo/db/s/merge_chunks_command.o build/fedora/mongo/db/s/migration_chunk_cloner_source_legacy_commands.o build/fedora/mongo/db/s/migration_destination_manager_legacy_commands.o build/fedora/mongo/db/s/move_chunk_command.o build/fedora/mongo/db/s/move_primary_command.o build/fedora/mongo/db/s/set_shard_version_command.o build/fedora/mongo/db/s/shardsvr_shard_collection.o build/fedora/mongo/db/s/sharding_server_status.o build/fedora/mongo/db/s/sharding_state_command.o build/fedora/mongo/db/s/split_chunk_command.o build/fedora/mongo/db/s/split_vector_command.o build/fedora/mongo/db/s/unset_sharding_command.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libcommands_db_s.a ar rcsTD build/fedora/mongo/db/repl/libserveronly_repl.a build/fedora/mongo/db/repl/noop_writer.o build/fedora/mongo/db/repl/replication_coordinator_external_state_impl.o build/fedora/mongo/db/repl/sync_source_feedback.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libserveronly_repl.a ar rcsTD build/fedora/mongo/db/libinitialize_snmp.a build/fedora/mongo/db/initialize_snmp.o Skipping ranlib for thin archive build/fedora/mongo/db/libinitialize_snmp.a ar rcsTD build/fedora/mongo/db/repl/libabstract_async_component.a build/fedora/mongo/db/repl/abstract_async_component.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libabstract_async_component.a g++ -o build/fedora/mongo/db/storage/bson_collection_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/bson_collection_catalog_entry.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from build/fedora/mongo/db/logical_session_id_gen.h:16, from src/mongo/db/logical_session_id.h:34, from src/mongo/db/service_context.h:36, from src/mongo/db/storage/storage_repair_observer.h:36, from src/mongo/db/storage/storage_repair_observer.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/catalog/collection_catalog_entry.h:33, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:31: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/fedora/mongo/db/storage/libstorage_repair_observer.a build/fedora/mongo/db/storage/storage_repair_observer.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libstorage_repair_observer.a ar rcsTD build/fedora/mongo/db/libsessions_collection_standalone.a build/fedora/mongo/db/sessions_collection_standalone.o Skipping ranlib for thin archive build/fedora/mongo/db/libsessions_collection_standalone.a g++ -o build/fedora/mongo/db/commands/run_aggregate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/run_aggregate.cpp g++ -o build/fedora/mongo/db/db.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/db/db.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/run_aggregate.h:31, from src/mongo/db/commands/run_aggregate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/run_aggregate.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/run_aggregate.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/run_aggregate.h:31, from src/mongo/db/commands/run_aggregate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/run_aggregate.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/global_conn_pool.h:31, from src/mongo/db/db.cpp:46: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::weak_ptr, mongo::StringMapTraits>': src/mongo/client/replica_set_monitor_manager.h:101:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::weak_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/run_aggregate.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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/db.cpp:53: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/db.cpp:53: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/global_conn_pool.h:31, from src/mongo/db/db.cpp:46: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/commands/run_aggregate.h:31, from src/mongo/db/commands/run_aggregate.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/db.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/db.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 src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/client/connection_string.h:38, from src/mongo/client/dbclientinterface.h:34, from src/mongo/client/connpool.h:35, from src/mongo/client/global_conn_pool.h:31, from src/mongo/db/db.cpp:46: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/catalog/uuid_catalog.h:234:44: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog/database.h:38, from src/mongo/db/commands/run_aggregate.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/db.cpp:53: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/storage_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_init.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/storage_init.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/storage_init.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/storage/storage_init.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/storage_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/storage_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/storage/storage_init.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/libmongodmain.a build/fedora/mongo/db/db.o Skipping ranlib for thin archive build/fedora/mongo/libmongodmain.a g++ -o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/storage_init.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/extent_manager.h:39, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.h:35, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ ar rcsTD build/fedora/mongo/db/storage/libstorage_init_d.a build/fedora/mongo/db/storage/storage_init.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libstorage_init_d.a g++ -o build/fedora/mongo/db/commands/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/drop_indexes.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/storage/mmap_v1/diskloc.h:40, from src/mongo/db/storage/mmap_v1/extent_manager.h:39, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.h:35, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/commands/drop_indexes.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/drop_indexes.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/drop_indexes.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/commands/drop_indexes.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/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:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/background.h:43, from src/mongo/db/commands/drop_indexes.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/get_last_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/get_last_error.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/drop_indexes.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/get_last_error.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/get_last_error.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/commands/get_last_error.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/get_last_error.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/get_last_error.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/commands/get_last_error.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/commands/create_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/create_indexes.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/get_last_error.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/create_indexes.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/create_indexes.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/create_indexes.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/create_indexes.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/create_indexes.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/repair_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/repair_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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/create_indexes.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/create_indexes.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/repair_cursor.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/repair_cursor.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/repair_cursor.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/repair_cursor.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/repair_cursor.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/repair_cursor.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/repair_cursor.cpp:35: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/create_indexes.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from src/mongo/db/commands/create_indexes.cpp:34: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/repair_cursor.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/find_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/find_cmd.cpp g++ -o build/fedora/mongo/db/commands/plan_cache_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/plan_cache_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/find_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/find_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/find_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/find_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/find_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 In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/plan_cache_commands.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return 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/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/plan_cache_commands.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/plan_cache_commands.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/find_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/plan_cache_commands.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/plan_cache_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/plan_cache_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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/plan_cache_commands.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/find_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/commands/plan_cache_commands.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/distinct.cpp g++ -o build/fedora/mongo/db/commands/lock_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/lock_info.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/lock_info.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/lock_info.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/distinct.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/lock_info.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/distinct.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/distinct.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/lock_info.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, 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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/lock_info.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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, 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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/lock_info.cpp:34: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/distinct.cpp:38: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/lock_info.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/commands/count_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/commands/count_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/db/commands/distinct.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/count_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/count_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/count_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/db/server_options.h:30, from src/mongo/base/secure_allocator.h:40, from src/mongo/db/auth/authorization_manager.h:35, from src/mongo/db/auth/authorization_session.h:38, from src/mongo/db/commands/count_cmd.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/commands/distinct.cpp:38: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/btree/btree_ondisk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/btree/btree_ondisk.cpp ar rcsTD build/fedora/mongo/db/librepair_database_and_check_version.a build/fedora/mongo/db/repair_database_and_check_version.o Skipping ranlib for thin archive build/fedora/mongo/db/librepair_database_and_check_version.a g++ -o build/fedora/mongo/db/free_mon/free_mon_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/free_mon/free_mon_storage.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/count_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/free_mon/free_mon_storage.h:33, from src/mongo/db/free_mon/free_mon_storage.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/free_mon/free_mon_storage.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/free_mon/free_mon_storage.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/free_mon/free_mon_storage.h:33, from src/mongo/db/free_mon/free_mon_storage.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/11/cstring:42, from src/mongo/base/string_data.h:33, from build/fedora/mongo/base/error_codes.h:35, from src/mongo/base/status.h:33, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/commands/count_cmd.cpp:33: In function 'memcpy', inlined from 'mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data.h:266:15, inlined from 'mongo::StringBuilderImpl::append(mongo::StringData)' at src/mongo/bson/util/builder.h:484:19, inlined from 'mongo::StringBuilderImpl::operator<<(mongo::StringData)' at src/mongo/bson/util/builder.h:441:15, inlined from 'mongo::StringBuilderImpl::operator<<(char const*)' at src/mongo/bson/util/builder.h:438:22, inlined from 'mongo::BSONElement::chk(mongo::BSONType) const' at src/mongo/bson/bsonelement.h:709:61: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 490] is out of the bounds [0, 0] [-Warray-bounds] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/free_mon/free_mon_storage.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/free_mon/free_mon_storage.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/free_mon/free_mon_storage.h:33, from src/mongo/db/free_mon/free_mon_storage.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ ar rcsTD build/fedora/mongo/db/commands/libstandalone.a build/fedora/mongo/db/commands/count_cmd.o build/fedora/mongo/db/commands/create_indexes.o build/fedora/mongo/db/commands/current_op.o build/fedora/mongo/db/commands/dbcommands.o build/fedora/mongo/db/commands/distinct.o build/fedora/mongo/db/commands/drop_indexes.o build/fedora/mongo/db/commands/explain_cmd.o build/fedora/mongo/db/commands/find_and_modify.o build/fedora/mongo/db/commands/find_cmd.o build/fedora/mongo/db/commands/geo_near_cmd.o build/fedora/mongo/db/commands/get_last_error.o build/fedora/mongo/db/commands/getmore_cmd.o build/fedora/mongo/db/commands/index_filter_commands.o build/fedora/mongo/db/commands/kill_op.o build/fedora/mongo/db/commands/killcursors_cmd.o build/fedora/mongo/db/commands/lock_info.o build/fedora/mongo/db/commands/list_collections.o build/fedora/mongo/db/commands/list_databases.o build/fedora/mongo/db/commands/list_indexes.o build/fedora/mongo/db/commands/pipeline_command.o build/fedora/mongo/db/commands/plan_cache_commands.o build/fedora/mongo/db/commands/rename_collection_cmd.o build/fedora/mongo/db/commands/repair_cursor.o build/fedora/mongo/db/commands/run_aggregate.o build/fedora/mongo/db/commands/sleep_command.o build/fedora/mongo/db/commands/validate.o build/fedora/mongo/db/commands/write_commands/write_commands.o src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/commands/libstandalone.a g++ -o build/fedora/mongo/db/s/config/sharding_catalog_manager_shard_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/s/config/namespace_serializer.h:73:40: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:33, from src/mongo/db/s/config/sharding_catalog_manager.h:33, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/db_raii.h:33, from src/mongo/db/free_mon/free_mon_storage.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/free_mon/libfree_mon.a build/fedora/mongo/db/free_mon/free_mon_processor.o build/fedora/mongo/db/free_mon/free_mon_queue.o build/fedora/mongo/db/free_mon/free_mon_op_observer.o build/fedora/mongo/db/free_mon/free_mon_storage.o build/fedora/mongo/db/free_mon/free_mon_controller.o build/fedora/mongo/db/free_mon/free_mon_protocol_gen.o build/fedora/mongo/db/free_mon/free_mon_commands_gen.o build/fedora/mongo/db/free_mon/free_mon_storage_gen.o Skipping ranlib for thin archive build/fedora/mongo/db/free_mon/libfree_mon.a g++ -o build/fedora/mongo/db/s/config/initial_split_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/config/initial_split_policy.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/catalog_raii.h:32, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/s/config/initial_split_policy.h:33, from src/mongo/db/s/config/initial_split_policy.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::vector, mongo::StringMapTraits>': src/mongo/db/s/config/initial_split_policy.cpp:71:83: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::vector; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/dur_preplogbuffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/dur_preplogbuffer.cpp ar rcsTD build/fedora/mongo/db/s/libsharding_catalog_manager.a build/fedora/mongo/db/s/config/initial_split_policy.o build/fedora/mongo/db/s/config/namespace_serializer.o build/fedora/mongo/db/s/config/sharding_catalog_manager_chunk_operations.o build/fedora/mongo/db/s/config/sharding_catalog_manager_collection_operations.o build/fedora/mongo/db/s/config/sharding_catalog_manager_database_operations.o build/fedora/mongo/db/s/config/sharding_catalog_manager_shard_operations.o build/fedora/mongo/db/s/config/sharding_catalog_manager_zone_operations.o build/fedora/mongo/db/s/config/sharding_catalog_manager.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libsharding_catalog_manager.a g++ -o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_options.cpp ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libbtree.a build/fedora/mongo/db/storage/mmap_v1/btree/btree_logic.o build/fedora/mongo/db/storage/mmap_v1/btree/btree_interface.o build/fedora/mongo/db/storage/mmap_v1/btree/btree_ondisk.o build/fedora/mongo/db/storage/mmap_v1/btree/key.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libbtree.a g++ -o build/fedora/mongo/db/repl/task_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/task_runner.cpp ar rcsTD build/fedora/mongo/db/repl/liboplog_interface_local.a build/fedora/mongo/db/repl/oplog_interface_local.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_interface_local.a g++ -o build/fedora/mongo/db/storage/mmap_v1/aligned_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/aligned_builder.cpp g++ -o build/fedora/mongo/db/auth/authz_session_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/auth/authz_session_external_state_d.cpp ar rcsTD build/fedora/mongo/db/commands/libfsync_locked.a build/fedora/mongo/db/commands/fsync_locked.o Skipping ranlib for thin archive build/fedora/mongo/db/commands/libfsync_locked.a ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libfile_allocator.a build/fedora/mongo/db/storage/mmap_v1/file_allocator.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libfile_allocator.a g++ -o build/fedora/mongo/db/repl/collection_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/collection_cloner.cpp ar rcsTD build/fedora/mongo/db/auth/libauthmongod.a build/fedora/mongo/db/auth/authz_manager_external_state_d.o build/fedora/mongo/db/auth/authz_session_external_state_d.o Skipping ranlib for thin archive build/fedora/mongo/db/auth/libauthmongod.a ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libcompress.a build/fedora/mongo/db/storage/mmap_v1/compress.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libcompress.a g++ -o build/fedora/mongo/db/repl/repl_set_request_votes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_request_votes.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/collection_cloner.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/query_solution.h:36, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/collection_cloner.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/collection_cloner.h:38, from src/mongo/db/repl/collection_cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/collection_cloner.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/collection_cloner.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/repl/collection_cloner.h:38, from src/mongo/db/repl/collection_cloner.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_request_votes.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_request_votes.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/repl/repl_set_request_votes.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_request_votes.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_request_votes.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/repl/repl_set_request_votes.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:37, from src/mongo/db/clientcursor.h:38, from src/mongo/client/fetcher.h:41, from src/mongo/db/repl/collection_cloner.h:39, from src/mongo/db/repl/collection_cloner.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_request_votes.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/storage/libbson_collection_catalog_entry.a build/fedora/mongo/db/storage/bson_collection_catalog_entry.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libbson_collection_catalog_entry.a ar rcsTD build/fedora/mongo/db/fts/libftsmongod.a build/fedora/mongo/db/fts/ftsmongod.o Skipping ranlib for thin archive build/fedora/mongo/db/fts/libftsmongod.a g++ -o build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.cpp ar rcsTD build/fedora/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.o build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.o build/fedora/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a g++ -o build/fedora/mongo/db/matcher/extensions_callback_real.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/matcher/extensions_callback_real.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_real.h:31, from src/mongo/db/matcher/extensions_callback_real.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_real.h:31, from src/mongo/db/matcher/extensions_callback_real.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/bson/bsonobj.h:44, from src/mongo/db/matcher/expression.h:36, from src/mongo/db/matcher/extensions_callback.h:31, from src/mongo/db/matcher/extensions_callback_real.h:31, from src/mongo/db/matcher/extensions_callback_real.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ ar rcsTD build/fedora/mongo/db/repl/libcollection_cloner.a build/fedora/mongo/db/repl/collection_cloner.o src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Skipping ranlib for thin archive build/fedora/mongo/db/repl/libcollection_cloner.a ar rcsTD build/fedora/mongo/db/libcloner.a build/fedora/mongo/db/cloner.o Skipping ranlib for thin archive build/fedora/mongo/db/libcloner.a ar rcsTD build/fedora/mongo/db/libdbhelpers.a build/fedora/mongo/db/dbhelpers.o Skipping ranlib for thin archive build/fedora/mongo/db/libdbhelpers.a g++ -o build/fedora/mongo/db/storage/storage_engine_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/storage_engine_init.cpp src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_real.h:31, from src/mongo/db/matcher/extensions_callback_real.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/matcher/libexpressions_mongod_only.a build/fedora/mongo/db/matcher/extensions_callback_real.o build/fedora/mongo/db/matcher/expression_text.o build/fedora/mongo/db/matcher/expression_where.o Skipping ranlib for thin archive build/fedora/mongo/db/matcher/libexpressions_mongod_only.a g++ -o build/fedora/mongo/db/s/migration_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/s/migration_session_id.cpp ar rcsTD build/fedora/mongo/db/libservice_liaison_mongod.a build/fedora/mongo/db/service_liaison_mongod.o Skipping ranlib for thin archive build/fedora/mongo/db/libservice_liaison_mongod.a g++ -o build/fedora/mongo/db/ftdc/ftdc_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/ftdc/ftdc_mongod.cpp ar rcsTD build/fedora/mongo/db/storage/libstorage_engine_common.a build/fedora/mongo/db/storage/storage_engine_init.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libstorage_engine_common.a ar rcsTD build/fedora/mongo/db/libsessions_collection_config_server.a build/fedora/mongo/db/sessions_collection_config_server.o Skipping ranlib for thin archive build/fedora/mongo/db/libsessions_collection_config_server.a g++ -o build/fedora/mongo/db/storage/mmap_v1/data_file_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/data_file_sync.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongod.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongod.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/db/ftdc/config.h:33, from src/mongo/db/ftdc/controller.h:37, from src/mongo/db/ftdc/ftdc_mongod.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_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/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/data_file_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/data_file_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/db/ftdc/config.h:33, from src/mongo/db/ftdc/controller.h:37, from src/mongo/db/ftdc/ftdc_mongod.cpp:36: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.h:31, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/ftdc/ftdc_server.h:34, from src/mongo/db/ftdc/ftdc_mongod.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/libcommand_can_run_here.a build/fedora/mongo/db/command_can_run_here.o Skipping ranlib for thin archive build/fedora/mongo/db/libcommand_can_run_here.a g++ -o build/fedora/mongo/db/storage/mmap_v1/dur_recover.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/dur_recover.cpp ar rcsTD build/fedora/mongo/db/ftdc/libftdc_mongod.a build/fedora/mongo/db/ftdc/ftdc_commands.o build/fedora/mongo/db/ftdc/ftdc_mongod.o Skipping ranlib for thin archive build/fedora/mongo/db/ftdc/libftdc_mongod.a ar rcsTD build/fedora/mongo/db/s/libmigration_types.a build/fedora/mongo/db/s/migration_session_id.o build/fedora/mongo/db/s/start_chunk_clone_request.o Skipping ranlib for thin archive build/fedora/mongo/db/s/libmigration_types.a ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libmmap_v1_options.a build/fedora/mongo/db/storage/mmap_v1/mmap_v1_options.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libmmap_v1_options.a g++ -o build/fedora/mongo/db/storage/mmap_v1/durop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/durop.cpp src/mongo/db/storage/mmap_v1/dur_recover.cpp: In member function 'bool mongo::dur::RecoveryJob::processFileBuffer(mongo::OperationContext*, const void*, unsigned int)': src/mongo/db/storage/mmap_v1/dur_recover.cpp:490:24: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mongo::dur::JHeader'; use assignment or value-initialization instead [-Wclass-memaccess] 490 | std::memset(&h, 0, sizeof(h)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/storage/mmap_v1/dur_recover.h:38, from src/mongo/db/storage/mmap_v1/dur_recover.cpp:35: src/mongo/db/storage/mmap_v1/dur_journalformat.h:48:8: note: 'struct mongo::dur::JHeader' declared here 48 | struct JHeader { | ^~~~~~~ g++ -o build/fedora/mongo/db/repl/oplog_buffer_blocking_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_buffer_blocking_queue.cpp ar rcsTD build/fedora/mongo/db/storage/kv/libkv_prefix.a build/fedora/mongo/db/storage/kv/kv_prefix.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/kv/libkv_prefix.a ar rcsTD build/fedora/mongo/db/storage/libstorage_engine_lock_file.a build/fedora/mongo/db/storage/storage_engine_lock_file.o build/fedora/mongo/db/storage/storage_engine_lock_file_posix.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/libstorage_engine_lock_file.a g++ -o build/fedora/mongo/db/repl/oplog_buffer_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/oplog_buffer_collection.cpp ar rcsTD build/fedora/mongo/db/repl/liboplog_buffer_blocking_queue.a build/fedora/mongo/db/repl/oplog_buffer_blocking_queue.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_buffer_blocking_queue.a g++ -o build/fedora/mongo/db/repl/repl_set_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_command.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/oplog_buffer_collection.h:34, from src/mongo/db/repl/oplog_buffer_collection.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/oplog_buffer_collection.h:34, from src/mongo/db/repl/oplog_buffer_collection.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move in return statement [-Wredundant-move] 202 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:202:25: note: remove 'std::move' call In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/namespace_string.h:38, from src/mongo/db/repl/oplog_buffer_collection.h:34, from src/mongo/db/repl/oplog_buffer_collection.cpp:32: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_command.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_command.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_command.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/repl/storage_interface.h:40, from src/mongo/db/repl/oplog_buffer_collection.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_command.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/ops/libwrite_ops_exec.a build/fedora/mongo/db/ops/write_ops_exec.o Skipping ranlib for thin archive build/fedora/mongo/db/ops/libwrite_ops_exec.a ar rcsTD build/fedora/mongo/util/libelapsed_tracker.a build/fedora/mongo/util/elapsed_tracker.o Skipping ranlib for thin archive build/fedora/mongo/util/libelapsed_tracker.a g++ -o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/catalog/hashtab.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/catalog/hashtab.cpp ar rcsTD build/fedora/mongo/db/libop_observer_impl.a build/fedora/mongo/db/op_observer_impl.o Skipping ranlib for thin archive build/fedora/mongo/db/libop_observer_impl.a ar rcsTD build/fedora/mongo/db/repl/liboplog_buffer_collection.a build/fedora/mongo/db/repl/oplog_buffer_collection.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_buffer_collection.a g++ -o build/fedora/mongo/db/stats/storage_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/stats/storage_stats.cpp In file included from src/mongo/db/storage/mmap_v1/catalog/hashtab.h:34, from src/mongo/db/storage/mmap_v1/catalog/hashtab.cpp:33: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:149:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 149 | memset(this, 0, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:158:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 158 | memcpy(this, &e, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ g++ -o build/fedora/mongo/db/storage/mmap_v1/dur.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/dur.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/stats/storage_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/stats/storage_stats.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/stats/storage_stats.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/stats/storage_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/stats/storage_stats.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/stats/storage_stats.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/catalog/collection.h:39, from src/mongo/db/stats/storage_stats.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/dur.cpp:83: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/dur.cpp:83: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/storage/journal_listener.h:31, from src/mongo/db/storage/mmap_v1/dur.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:76: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/dur.cpp:83: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/dur.cpp:83: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long unsigned int, mongo::StringMapTraits>': src/mongo/db/views/view_graph.h:177:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::shared_ptr, mongo::StringMapTraits>': src/mongo/db/views/view_catalog.h:174:13: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::shared_ptr; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Collection*, mongo::StringMapTraits>': src/mongo/db/catalog/database.h:165:38: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Collection*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/bson/timestamp.h:31, from src/mongo/db/repl/optime.h:33, from src/mongo/db/storage/journal_listener.h:31, from src/mongo/db/storage/mmap_v1/dur.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:76: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Top::CollectionData, mongo::StringMapTraits>': src/mongo/db/stats/top.h:150:14: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Top::CollectionData; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:35, from src/mongo/db/catalog/collection_info_cache.h:33, from src/mongo/db/catalog/collection.h:41, from src/mongo/db/stats/storage_stats.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/commands/server_status.h:33, from src/mongo/db/storage/mmap_v1/dur.cpp:83: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_index.cpp g++ -o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp In file included from src/mongo/db/storage/mmap_v1/catalog/hashtab.h:34, from src/mongo/db/storage/mmap_v1/catalog/namespace_index.cpp:40: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:149:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 149 | memset(this, 0, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:158:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 158 | memcpy(this, &e, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.h:36, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp:31: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:149:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 149 | memset(this, 0, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:158:19: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 158 | memcpy(this, &e, sizeof(Extra)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:126:11: note: 'class mongo::NamespaceDetails::Extra' declared here 126 | class Extra { | ^~~~~ ar rcsTD build/fedora/mongo/db/libstartup_warnings_mongod.a build/fedora/mongo/db/startup_warnings_mongod.o Skipping ranlib for thin archive build/fedora/mongo/db/libstartup_warnings_mongod.a g++ -o build/fedora/mongo/db/repl/repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_get_status_cmd.cpp ar rcsTD build/fedora/mongo/db/storage/mmap_v1/libstorage_mmapv1.a build/fedora/mongo/db/storage/mmap_v1/aligned_builder.o build/fedora/mongo/db/storage/mmap_v1/catalog/hashtab.o build/fedora/mongo/db/storage/mmap_v1/catalog/index_details.o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_details.o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.o build/fedora/mongo/db/storage/mmap_v1/catalog/namespace_index.o build/fedora/mongo/db/storage/mmap_v1/commit_notifier.o build/fedora/mongo/db/storage/mmap_v1/data_file.o build/fedora/mongo/db/storage/mmap_v1/data_file_sync.o build/fedora/mongo/db/storage/mmap_v1/durable_mapped_file.o build/fedora/mongo/db/storage/mmap_v1/dur.o build/fedora/mongo/db/storage/mmap_v1/durop.o build/fedora/mongo/db/storage/mmap_v1/dur_preplogbuffer.o build/fedora/mongo/db/storage/mmap_v1/dur_commitjob.o build/fedora/mongo/db/storage/mmap_v1/dur_recover.o build/fedora/mongo/db/storage/mmap_v1/dur_journal.o build/fedora/mongo/db/storage/mmap_v1/dur_journal_writer.o build/fedora/mongo/db/storage/mmap_v1/dur_recovery_unit.o build/fedora/mongo/db/storage/mmap_v1/journal_latency_test_cmd.o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_engine.o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.o build/fedora/mongo/db/storage/mmap_v1/mmap_v1_init.o build/fedora/mongo/db/storage/mmap_v1/repair_database.o Skipping ranlib for thin archive build/fedora/mongo/db/storage/mmap_v1/libstorage_mmapv1.a ar rcsTD build/fedora/mongo/db/repl/liboplog_fetcher.a build/fedora/mongo/db/repl/oplog_fetcher.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/liboplog_fetcher.a g++ -o build/fedora/mongo/db/repl/repl_set_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/fedora -Isrc src/mongo/db/repl/repl_set_commands.cpp In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_get_status_cmd.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:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_get_status_cmd.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/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/bson_extract.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:29: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:33, from src/mongo/db/pipeline/document_internal.h:37, from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_commands.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:166:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 166 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:171:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 171 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:179:19: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 179 | DEV memset(this, 0xee, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:194:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 194 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:203:16: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 203 | memmove(this, &rhs, sizeof(*this)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:212:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 212 | memcpy(this, &rhs, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:213:15: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 213 | memcpy(&rhs, temp, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:300:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 300 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:78:7: note: 'class mongo::ValueStorage' declared here 78 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:31, from src/mongo/db/pipeline/dependencies.h:35, from src/mongo/db/matcher/expression.h:40, from src/mongo/db/query/canonical_query.h:35, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_commands.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:349:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 349 | memset(_hashTab, -1, hashTabBytes()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_internal.h:45:7: note: 'class mongo::Position' declared here 45 | class Position { | ^~~~~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_commands.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, long long int, mongo::StringMapTraits>': src/mongo/db/pipeline/variables.h:192:30: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = long long int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, std::__cxx11::basic_string, mongo::StringMapTraits>': src/mongo/db/matcher/expression_path.h:90:28: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = std::__cxx11::basic_string; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:31, from src/mongo/db/matcher/extensions_callback.h:32, from src/mongo/db/matcher/extensions_callback_noop.h:31, from src/mongo/db/query/canonical_query.h:36, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_commands.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:190:25: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:190:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:212:25: warning: redundant move in return statement [-Wredundant-move] 212 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:212:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:234:25: warning: redundant move in return statement [-Wredundant-move] 234 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:234:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:256:25: warning: redundant move in return statement [-Wredundant-move] 256 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:256:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:278:25: warning: redundant move in return statement [-Wredundant-move] 278 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:278:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_commands.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:126:25: warning: redundant move in return statement [-Wredundant-move] 126 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:126:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:155:25: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:155:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:184:25: warning: redundant move in return statement [-Wredundant-move] 184 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:184:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:202:25: warning: redundant move 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/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/bson/bsonelement.h:38, from src/mongo/db/jsobj.h:46, from src/mongo/bson/mutable/element.h:34, from src/mongo/db/auth/privilege.h:32, from src/mongo/db/commands.h:39, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_commands.cpp:37: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CollectionIndexUsageTracker::IndexUsageStats, mongo::StringMapTraits>': src/mongo/db/collection_index_usage_tracker.h:115:61: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CollectionIndexUsageTracker::IndexUsageStats; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::TimeZone, mongo::StringMapTraits>': src/mongo/db/query/datetime/date_time_support.h:427:25: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::TimeZone; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::ExpressionContext::ResolvedNamespace, mongo::StringMapTraits>': src/mongo/db/pipeline/expression_context.h:277:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::ExpressionContext::ResolvedNamespace; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>': /usr/include/c++/11/bits/stl_pair.h:218:11: required from 'struct std::pair, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits> >' src/mongo/util/unordered_fast_key_table.h:154:39: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>::Entry' src/mongo/util/unordered_fast_key_table.h:340:11: required from 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>' src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::CompositeIndexabilityDiscriminator; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>, mongo::StringMapTraits>': src/mongo/db/query/plan_cache_indexability.h:142:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::UnorderedFastKeyTable, mongo::CompositeIndexabilityDiscriminator, mongo::StringMapTraits>; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::Command*, mongo::StringMapTraits>': src/mongo/db/commands.h:859:16: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::Command*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, unsigned int, mongo::StringMapTraits>': src/mongo/db/op_observer.h:310:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = unsigned int; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::repl::ReplSetTagPattern, mongo::StringMapTraits>': src/mongo/db/repl/repl_set_config.h:402:34: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::repl::ReplSetTagPattern; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call ar rcsTD build/fedora/mongo/db/repl/librepl_set_status_commands.a build/fedora/mongo/db/repl/repl_set_command.o build/fedora/mongo/db/repl/repl_set_get_status_cmd.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librepl_set_status_commands.a ar rcsTD build/fedora/mongo/db/libcollection_index_usage_tracker.a build/fedora/mongo/db/collection_index_usage_tracker.o Skipping ranlib for thin archive build/fedora/mongo/db/libcollection_index_usage_tracker.a ar rcsTD build/fedora/mongo/db/repl/libtask_runner.a build/fedora/mongo/db/repl/task_runner.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/libtask_runner.a ar rcsTD build/fedora/mongo/db/stats/libserveronly_stats.a build/fedora/mongo/db/stats/latency_server_status_section.o build/fedora/mongo/db/stats/lock_server_status_section.o build/fedora/mongo/db/stats/storage_stats.o Skipping ranlib for thin archive build/fedora/mongo/db/stats/libserveronly_stats.a g++ -o build/fedora/mongo/tools/bridge.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/tools/bridge.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:30, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:33, from src/mongo/db/commands.h:45, from src/mongo/db/repl/repl_set_command.h:33, from src/mongo/db/repl/repl_set_commands.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:54:38: required from here src/mongo/db/matcher/expression_type.h:59:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:59:30: note: remove 'std::move' call g++ -o build/fedora/mongo/tools/mongobridge_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/tools/mongobridge_options.cpp ar rcsTD build/fedora/mongo/db/repl/librepl_set_commands.a build/fedora/mongo/db/repl/repl_set_commands.o build/fedora/mongo/db/repl/repl_set_request_votes.o Skipping ranlib for thin archive build/fedora/mongo/db/repl/librepl_set_commands.a Using tempfile /tmp/tmpvz3x_f4_.lnk for command line: g++ -o build/fedora/mongo/mongod -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,-z,relro -pie build/fedora/mongo/db/dbmain.o -Wl,--start-group -Wl,--whole-archive build/fedora/mongo/libmongodmain.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libversion_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libtcmalloc_set_parameter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/libmongod_options_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libstorage_interface_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_set_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_set_status_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_context_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libservice_entry_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_entry_point_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserveronly.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_init_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libindex_entry_comparison.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/devnull/libstorage_devnull.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/kv/libkv_engine.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/kv/libkv_storage_engine.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/kv/libkv_database_catalog_entry_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/kv/libkv_engine_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libbson_collection_catalog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/devnull/libstorage_devnull_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libop_observer_sharding_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libcommands_db_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/commands/libshared_cluster_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libserveronly_repl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_recovery.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_consistency_markers_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_consistency_markers_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_coordinator_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libtopology_coordinator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libscatter_gather.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreporter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libdata_replicator_external_state_initial_sync.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libbgsync.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libsync_source_resolver.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librs_rollback.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librslog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librollback_source_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librollback_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libroll_back_local_operations.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_interface_remote.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_interface_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libdata_replicator_external_state_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_buffer_proxy.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_buffer_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_application.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libsharding_runtime_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_initialization.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libreplset_dist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libdist_lock_catalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libdist_lock_catalog_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_cache_factory_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_liaison_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/client/libshard_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libmigration_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libop_observer_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplogreader.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libinitial_syncer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librollback_checker.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_fetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libabstract_oplog_fetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_buffer_blocking_queue.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libmultiapplier.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libdatabases_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libdatabase_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libcollection_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libtask_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libabstract_async_component.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libconnection_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libttl_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libstartup_warnings_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libstartup_warnings_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libprefetch.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/libftsmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/librepair_database_and_check_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libperiodic_runner_job_abort_expired_transactions.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libmongodandmongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsecurity_key.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libmongod_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_cache_factory_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libtransaction_reaper.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection_standalone.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection_config_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/write_ops/libcluster_write_op.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libstore_possible_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_cursor_cleanup_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_client_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/librouter_exec_stage.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/commands/libcluster_commands_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection_rs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libremote_command_targeter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_liaison_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_client_direct.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/client/librs_local_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libinitialize_snmp.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ftdc/libftdc_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/free_mon/libfree_mon_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ftdc/libftdc_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprocparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/free_mon/libfree_mon.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ftdc/libftdc.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libsharding_catalog_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libtype_shard_identity.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/exec/libstagedebug_cmd.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libstandalone.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ops/libwrite_ops_exec.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/librw_concern_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libtimer_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommand_can_run_here.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libwrite_commands_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/liblist_collections_filter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libcurrent_op_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libshell_protocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libprofile_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libmongod_fsync.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libstorage_mmapv1.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/librecord_access_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/liblogfile.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libmmap.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libfile_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libcompress.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libjournal_listener.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/kv/libkv_prefix.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libfsync_locked.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libmongod_fcv.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkill_sessions_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libkill_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcatalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/views/libviews_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libmmap_v1_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_engine_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_engine_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libpaths.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_engine_lock_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libbalancer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libdrop_pending_collection_reaper.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libttl_collection_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsystem_index.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/librepair_database.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/librepair_database_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_repair_observer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_file_util.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libdbcheck.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libop_observer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libindex_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libindex_access_methods.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcollection_index_usage_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libindex_key_validate.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libhealth_log.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/concurrency/libdeferred_writer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcatalog_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libindex_create.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcollection_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdbhelpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwrite_ops.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libintrospect.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libquery_exec.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libelapsed_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/liboplog_hack.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libserveronly_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/datetime/libinit_timezone_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/matcher/libexpressions_mongod_only.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libscripting_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libscripting.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_mozjs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/mozjs-45/libmozjs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libbson_template_evaluator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcursor_server_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libbackground.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/exec/libworking_set.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/exec/libscoped_timer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcollection_info_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdb_raii.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcatalog_raii.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/views/libviews.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libaggregation.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libpipeline.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libasync_results_merger.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libasync_requests_sender.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libsharding_catalog_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/client/libsharding_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libfetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libdist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libparsed_aggregation_projection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libgranularity_rounder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdocument_sources_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libaccumulator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libkey_generator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/libbase_fts.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_stemmer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/unicode/libunicode.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/liblinenoise_utf8.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libtop.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libfill_locker_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/s/libsharding_api_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/librange_arithmetic.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboplog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdbdirectclient.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcurop_metrics.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcurop_failpoint_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libindex_access_method.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libbtree.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/librecord_store_v1.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/mmap_v1/libextent.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libencryption_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcurop.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprogress_meter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libindex_descriptor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libindex_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/concurrency/libwrite_conflict_exception.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libindex_catalog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/concurrency/liblock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthservercommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libservers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libntservice.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsignal_handlers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/scripting/libscripting_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/shell/libmongojs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_legacy_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcluster_last_error_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblasterror.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcoreshard.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libthread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libgrid.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/query/libcluster_cursor_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libgeneric_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libsharding_routing_table.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libticketholder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libkey_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/client/libshard_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libremote_command_retry_scheduler.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time_metadata_hook.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libtask_executor_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libisself.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclientdriver_network.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libthread_pool_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_thread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface_tl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libservice_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/base/libsystem_error.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libasync_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libnetwork_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libtask_executor_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libconnection_pool_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libegress_tag_closer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libconnection_pool_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblog_process_details.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplica_set_messages.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_process.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libstorage_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librollback_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_zlib.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_snappy.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/cmdline_utils/libcmdline_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libfeature_compatibility_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libcore.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/logger/libparse_log_component_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_cache_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsessions_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/write_ops/libbatch_write_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_liaison.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_id_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkill_sessions.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclientdriver_minimal.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libclient_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libauthentication.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsecurity_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsaslauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libsasl_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/executor/libremote_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth_impl_internal_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth_impl_internal.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_asio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/asio-master/libasio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libbackground_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libcounters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwire_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcommon_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libconnection_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libdns_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libobject_check.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libmetadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libclient_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libis_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time_validator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsigned_logical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_client_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libsharding_catalog_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_document.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libtime_proof_service.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libread_preference.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdbmessage.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libaudit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libtest_commands_enabled.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libinternal_user_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libicu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libicu_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_i18n.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/icu4c-57.1/source/libicu_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/liblite_parsed_document_source.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdocument_validation.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser_document_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/librole_graph_update.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/update/libupdate_driver.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/update/libupdate.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/update/libupdate_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libupdate_index_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_clock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libglobal_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_planner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libindex_bounds.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/matcher/libexpressions.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_knobs.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libexpression.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsummation.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libexpression_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_factory_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libaggregation_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libexplain_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libcommand_request_response.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libread_concern_args.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libuuid_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase_holder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcollection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libnamespace_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboptime.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdependencies.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/pipeline/libdocument_value.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libintrusive_counter.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/datetime/libdate_time_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_timelib.a -Wl,--no-whole-archive build/fedora/third_party/timelib-2018.01alpha1/libtimelib.a -Wl,--whole-archive build/fedora/mongo/db/pipeline/libfield_path.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/matcher/libpath.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/fts/libfts_query_noop.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/index/libexpression_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/collation/libcollator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libmongohasher.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libmd5.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/geo/libgeoparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/geo/libgeometry.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/libs2.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/util/math/libmath.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/util/coding/libcoding.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/strings/libstrings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/s2/base/libbase_s2.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/bson/libdotted_path_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libsasl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_yaml.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/librole_graph.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libindex_names.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthorization_manager_global.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libaudit_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libfail_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libclock_sources.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libwrite_unit_of_work.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha_block_openssl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha1_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha256_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsecure_compare_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser_name.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth_rolename.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libaddress_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/idl/libidl_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommand_generic_argument.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthentication_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libnetwork.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libwinutil.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libspin_lock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/util/libbson_extract.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/mutable/libmutable_bson.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsafe_num.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/base/libsecure_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsecure_zero_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprocessinfo.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/libbase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/murmurhash3/libmurmurhash3.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_pcrecpp.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/fedora/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/fedora/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libquick_exit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_allocator.a -Wl,--no-whole-archive build/fedora/mongo/util/libdebugger.a -Wl,--end-group -lcurl -lstemmer -lz -lsnappy -lyaml-cpp -lpcre -lpcrecpp -lboost_program_options -lboost_filesystem -lboost_system -lboost_iostreams -ltcmalloc -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl g++ @/tmp/tmpvz3x_f4_.lnk g++ -o build/fedora/mongo/tools/bridge_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/tools/bridge_commands.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/util/duration.h:40, from src/mongo/util/time_support.h:41, from src/mongo/tools/bridge_commands.h:33, from src/mongo/tools/bridge_commands.cpp:31: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::BridgeCommand*, mongo::StringMapTraits>': src/mongo/tools/bridge_commands.cpp:162:27: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BridgeCommand*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BridgeCommand*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BridgeCommand*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::BridgeCommand*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ g++ -o build/fedora/mongo/tools/mongobridge_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -flto=auto -ffat-lto-objects -fexceptions -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ffloat-store -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -march=nocona -mtune=generic -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/fedora -Isrc src/mongo/tools/mongobridge_options_init.cpp In file included from src/mongo/util/string_map.h:36, from src/mongo/bson/bsontypes.h:37, from src/mongo/bson/util/builder.h:47, from src/mongo/util/mongoutils/str.h:43, from src/mongo/base/data_range.h:38, from src/mongo/transport/message_compressor_base.h:31, from src/mongo/transport/message_compressor_registry.h:33, from src/mongo/tools/mongobridge_options_init.cpp:33: src/mongo/util/unordered_fast_key_table.h: In instantiation of 'class mongo::UnorderedFastKeyTable, mongo::MessageCompressorBase*, mongo::StringMapTraits>': src/mongo/transport/message_compressor_registry.h:113:39: required from here src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:193:16: note: in a call to non-static member function 'mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 193 | Entry* begin() { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ src/mongo/util/unordered_fast_key_table.h:266:45: warning: 'this' pointer is null [-Wnonnull] 266 | typename reference = decltype(AreaPtr()->begin()->getData()), | ^~~~~~~ src/mongo/util/unordered_fast_key_table.h:200:22: note: in a call to non-static member function 'const mongo::UnorderedFastKeyTable::Entry* mongo::UnorderedFastKeyTable::Area::begin() const [with K_L = mongo::StringData; K_S = std::__cxx11::basic_string; V = mongo::MessageCompressorBase*; Traits = mongo::StringMapTraits]' 200 | const Entry* begin() const { | ^~~~~ Using tempfile /tmp/tmpkdmwi01y.lnk for command line: g++ -o build/fedora/mongo/tools/mongobridge -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,-z,relro -pie build/fedora/mongo/tools/bridge.o build/fedora/mongo/tools/bridge_commands.o build/fedora/mongo/tools/mongobridge_options.o build/fedora/mongo/tools/mongobridge_options_init.o -Wl,--start-group -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsignal_handlers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblog_process_details.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplica_set_messages.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libreplication_process.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libstorage_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librollback_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/cmdline_utils/libcmdline_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_manager_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libssl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libbackground_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommands.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libaudit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libtest_commands_enabled.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/commands/libserver_status_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libinternal_user_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/base/libsystem_error.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libservice_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_asio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/asio-master/libasio.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libservice_entry_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/stats/libcounters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_zlib.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_snappy.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/options_parser/liboptions_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_yaml.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwire_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/bson/libdotted_path_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/liblegacy_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libcommon_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/query/libquery_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/libread_concern_args.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libuuid_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase_holder.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libdatabase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/catalog/libcollection.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libnamespace_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libconnection_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libdns_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libobject_check.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libmetadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libclient_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libprocessinfo.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/libis_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/liboptime.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time_validator.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libsigned_logical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_client_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/s/catalog/libsharding_catalog_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_clock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libglobal_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/repl/librepl_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libkeys_collection_document.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libtime_proof_service.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libindex_names.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libaddress_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauthentication_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/mutable/libmutable_bson.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsafe_num.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libaudit_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libuser_name.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/auth/libauth_rolename.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/client/libread_preference.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libservice_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libperiodic_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libfail_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libclock_sources.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libwrite_unit_of_work.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/storage/libstorage_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/idl/libidl_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libcommand_generic_argument.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha_block_openssl.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha1_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/crypto/libsha256_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libsecure_compare_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/bson/util/libbson_extract.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/rpc/libcommand_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libdbmessage.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/net/libnetwork.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libwinutil.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/concurrency/libspin_lock.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/transport/libtransport_layer_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/libbase.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/murmurhash3/libmurmurhash3.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_pcrecpp.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/fedora/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/fedora/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/mongo/util/libquick_exit.a -Wl,--no-whole-archive -Wl,--whole-archive build/fedora/third_party/libshim_allocator.a -Wl,--no-whole-archive build/fedora/mongo/util/libdebugger.a -Wl,--end-group -lz -lsnappy -lyaml-cpp -lpcre -lpcrecpp -lboost_program_options -lboost_filesystem -lboost_system -lboost_iostreams -ltcmalloc -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl g++ @/tmp/tmpkdmwi01y.lnk 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/i18n/unicode/ucol.h:128: warning: type 'UColAttributeValue' violates the C++ One Definition Rule [-Wodr] 128 | } UColAttributeValue; | src/third_party/mozjs-45/extract/js/src/builtin/Intl.cpp:115: note: an enum with different value name is defined in another translation unit 115 | 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-45/extract/js/src/builtin/Intl.cpp:120: note: mismatching definition 120 | 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-45/extract/js/src/builtin/Intl.cpp:106: note: an enum with different value name is defined in another translation unit 106 | 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-45/extract/js/src/builtin/Intl.cpp:107: note: mismatching definition 107 | UCOL_ALTERNATE_HANDLING, | In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:96:28, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:185:23, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:131:30: /usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^ In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:96:28, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:129:26: /usr/include/bits/string_fortified.h:29:33: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^ Install file: "build/fedora/mongo/tools/mongobridge" as "mongobridge" In member function '__ct ', inlined from '__ct_base ' at src/mongo/util/unordered_fast_key_table.h:169:73: src/mongo/util/unordered_fast_key_table.h:164:35: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | ^ src/mongo/util/unordered_fast_key_table.h: In member function '__ct_base ': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:73, inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from 'getUsageStats' at src/mongo/db/collection_index_usage_tracker.cpp:67:12, inlined from 'getIndexUsageStats' at src/mongo/db/catalog/collection_info_cache_impl.cpp:245:45: src/mongo/util/unordered_fast_key_table.h:164:35: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | ^ src/mongo/util/unordered_fast_key_table.h: In member function 'getIndexUsageStats': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:73, inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from 'getUsageStats' at src/mongo/db/collection_index_usage_tracker.cpp:67:12: src/mongo/util/unordered_fast_key_table.h:164:35: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | ^ src/mongo/util/unordered_fast_key_table.h: In member function 'getUsageStats': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:185:23, inlined from 'runQuery' at src/mongo/db/query/find.cpp:698:39: /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:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:185:23, inlined from 'runQuery' at src/mongo/db/query/find.cpp:577: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, | src/third_party/mozjs-45/extract/js/src/jit/IonBuilder.cpp: In member function 'computeHeapType': lto1: warning: function may return address of local variable [-Wreturn-local-addr] src/third_party/mozjs-45/extract/js/src/jit/IonBuilder.cpp:9259: note: declared here 9259 | TemporaryTypeSet empty; | In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:0, inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from '__ct ' at src/mongo/db/pipeline/variables.h:144:7, inlined from 'copyWith' at src/mongo/db/pipeline/variables.h:183:36, inlined from 'copyVariablesToExpCtx' at src/mongo/db/pipeline/document_source_lookup.cpp:592:47: src/mongo/util/unordered_fast_key_table.h:164: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | src/mongo/util/unordered_fast_key_table.h: In function 'copyVariablesToExpCtx': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:0, inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from '__ct ' at src/mongo/db/pipeline/variables.h:144:7, inlined from 'createFromBson' at src/mongo/db/pipeline/document_source_redact.cpp:175:39: src/mongo/util/unordered_fast_key_table.h:164: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | src/mongo/util/unordered_fast_key_table.h: In function 'createFromBson': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In function 'memcpy', inlined from 'unsafeStore' at src/mongo/base/data_type.h:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'setResultFlagsToOk' at src/mongo/db/dbmessage.h:185:23, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:131: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:96:0, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'unsafeStore' at src/mongo/base/data_type_endian.h:113:30, inlined from 'unsafeStore' at src/mongo/base/data_type.h:156:32, inlined from 'write' at src/mongo/base/data_view.h:83:30, inlined from 'setResultFlags' at src/mongo/db/dbmessage.h:181:41, inlined from 'done' at src/mongo/rpc/legacy_reply_builder.cpp:129: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]; | In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:73, inlined from 'operator=' at src/mongo/util/unordered_fast_key_table.h:174:13, inlined from 'operator=' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from 'operator=.isra' at src/mongo/db/repl/repl_set_config.h:52:7: src/mongo/util/unordered_fast_key_table.h:164: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | src/mongo/util/unordered_fast_key_table.h: In member function 'operator=.isra': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ In member function '__ct ', inlined from '__ct ' at src/mongo/util/unordered_fast_key_table.h:169:73, inlined from 'operator=' at src/mongo/util/unordered_fast_key_table.h:174:13, inlined from 'operator=' at src/mongo/util/unordered_fast_key_table.h:63:7, inlined from 'operator=.isra' at src/mongo/db/repl/repl_set_config.h:52:7: src/mongo/util/unordered_fast_key_table.h:164: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] 164 | _entries(capacity ? new Entry[capacity] : nullptr) { | src/mongo/util/unordered_fast_key_table.h: In member function 'operator=.isra': /usr/include/c++/11/new:128:26: note: in a call to allocation function 'operator new []' declared here 128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^ Install file: "build/fedora/mongo/mongod" as "mongod" scons: done building targets. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.i07CbB + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386 ++ dirname /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386 + cd mongo-r4.0.3 + install -p -D -m 755 mongod /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongod + install -p -D -m 755 mongos /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongos + install -p -D -m 755 mongo /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongo + install -p -D -m 755 mongobridge /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongobridge + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/var/lib/mongodb + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/var/log/mongodb + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/var/run/mongodb + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/etc/sysconfig + install -p -D -m 644 /builddir/build/SOURCES/mongodb-tmpfile /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/lib/tmpfiles.d/mongodb.conf + install -p -D -m 644 /builddir/build/SOURCES/mongod.service /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/lib/systemd/system/mongod.service + install -p -D -m 644 /builddir/build/SOURCES/mongos.service /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/lib/systemd/system/mongos.service + install -p -D -m 644 /builddir/build/SOURCES/mongodb.logrotate /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/etc/logrotate.d/mongodb + install -p -D -m 644 /builddir/build/SOURCES/mongod.conf /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/etc/mongod.conf + install -p -D -m 644 /builddir/build/SOURCES/mongos.conf /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/etc/mongos.conf + install -p -D -m 644 /builddir/build/SOURCES/mongod.sysconf /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/etc/sysconfig/mongod + install -p -D -m 644 /builddir/build/SOURCES/mongos.sysconf /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/etc/sysconfig/mongos + install -d -m 755 /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/man/man1 + install -p -m 644 debian/mongo.1 /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/man/man1/ + install -p -m 644 debian/mongod.1 /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/man/man1/ + install -p -m 644 debian/mongos.1 /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/man/man1/ + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/var + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts + mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ciconfig + install -p -D -m 755 buildscripts/resmoke.py /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/ + install -p -D -m 444 buildscripts/__init__.py /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ + install -p -D -m 444 buildscripts/ciconfig/__init__.py /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ciconfig + install -p -D -m 444 buildscripts/ciconfig/tags.py /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ciconfig + cp -R buildscripts/resmokeconfig /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ + cp -R buildscripts/resmokelib /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ + cp -R jstests /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/ ++ find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/tsv1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/tool_replset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/tool1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/stat1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/shell_mkdir.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/restorewithauth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/gridfs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/files1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport_minkey_maxkey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport_date.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport_bigarray.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/exportimport1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumpsecondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore_excludecollections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore_auth3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore_auth2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestoreWithNoOptions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore10.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumprestore1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumpfilename1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/dumpauth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/data/dumprestore6/system.indexes.bson + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/data/dumprestore6/foo.bson + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/data/csvimport1.csv + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/data/a.tsv + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/csvimport1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/csvexport2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/csvexport1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/csv1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/command_line_quotes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/upgrade_to_x509_ssl_nossl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/upgrade_to_ssl_nossl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/upgrade_noauth_to_x509_nossl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/ssl_mixedmode.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/set_parameter_nossl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/mixed_mode_sharded_transition_nossl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/mixed_mode_sharded_nossl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/mixed_mode_repl_nossl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial/SERVER-26369.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/x509_startup_warning.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/x509_multivalue.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/x509_invalid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/x509_custom.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/x509_client.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/x509_all_the_oids.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/upgrade_to_x509_ssl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/upgrade_to_ssl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/upgrade_noauth_to_x509_ssl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/tls1_0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_x509_roles.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_without_ca.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_withhold_client_cert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_with_system_ca.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_weak.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_uri.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_restricted_protocols.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_private_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_invalid_server_cert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_hostname_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_get_more.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_fragment.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_fips.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_crl_revoked.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_crl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_count_protocols.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_cluster_file.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_cluster_ca.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_client_certificate_warning_suppression.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_cert_selector_apple.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_cert_selector.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_cert_password.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/ssl_alert_reporting.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/shell_x509_system_user.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/shell_option_parsing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/sharding_with_x509.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/set_parameter_ssl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/repl_ssl_noca.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/mixed_mode_sharded_transition.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/mixed_mode_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/mixed_mode_repl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/libs/ssl_x509_role_auth_utf8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/libs/ssl_x509_role_auth_escape.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/libs/ssl_x509_role_auth_email.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/libs/ssl_x509_role_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/libs/ssl_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/initial_sync1_x509.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/disable_x509.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/dh_params.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/slow1/sharding_multiple_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/slow1/replsets_priority1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/slow1/mr_during_migrate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/slow1/large_role_chain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/slow1/initial_sync_many_dbs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/slow1/conc_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/zero_shard_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/zbigMapReduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/write_transactions_during_migration.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/write_commands_sharding_state.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/write_cmd_auto_split.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/views.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/view_rewrite.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/version2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/version1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/validate_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/uuid_propagated_to_recipient_shard_on_recvChunkStart.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/uuid_propagated_to_config_server_on_shardCollection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/user_flags_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/use_rsm_data_for_cs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/upsert_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/update_zone_key_range_not_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/update_zone_key_range.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/update_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/update_immutable_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/unowned_doc_filtering.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/transactions_prohibited_in_sharded_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/trace_missing_docs_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/top_chunk_split.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/top_chunk_autosplit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/time_zone_info_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/test_stacked_migration_cleanup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/tag_range.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/tag_auto_split_partial_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/tag_auto_split.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/startup_with_all_configs_down.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/stale_version_write.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/stale_mongos_updates_and_removes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/ssv_config_check.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/split_with_force_small.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/split_with_force.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/split_stale_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/split_large_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/split_against_shard_with_invalid_split_points.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sort1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shards_and_config_return_last_committed_optime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_with_keyfile.key + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_system_namespaces.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_rs2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_rs1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_multiple_ns_rs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_migrate_cursor1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_balance4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_balance3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_balance2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharding_balance1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharded_profile.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sharded_limit_batchsize.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_with_special_db_names.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_targeting.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_kill_and_pooling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_keycount.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_key_immutable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_insert_getlasterror_w2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_identity_rollback.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_identity_config_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_existing_coll_chunk_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_existing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_config_db_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_collection_verify_initial_chunks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_collection_existing_zones.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_collection_cache_upgrade_downgrade.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_collection_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_aware_primary_failover.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_aware_on_add_shard.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_aware_init_secondaries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard_aware_init.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/shard1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/sessions_collection_auto_healing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/session_info_in_oplog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/server_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/secondary_shard_versioning.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/secondary_shard_version_protocol_with_causal_consistency.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/safe_secondary_reads_drop_recreate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/rs_stepdown_and_pooling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/return_partial_shards_down.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/retryable_writes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/resume_change_stream_on_subset_of_shards.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/resume_change_stream_from_stale_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/resume_change_stream.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/replmonitor_bad_seed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/replication_with_undefined_shard_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/repl_monitor_refresh.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/rename_across_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/remove_shard_from_zone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/remove3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/remove2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/remove1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/regex_targeting.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/refresh_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/recovering_slaveok.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/read_pref_multi_mongos_stale_config.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/read_pref_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/read_pref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/read_does_not_create_namespaces.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/read_committed_lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/read_after_optime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/query_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/query_config.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/query_after_multi_write.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/printShardingStatus.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/primary_config_server_blackholed_from_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/presplit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/prefix_shard_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/pending_chunk.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/parallel.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/oplog_document_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/operation_time_api.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/not_allowed_on_sharded_collection_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/nonreplicated_uuids_on_shardservers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/no_empty_reset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/noUpdateButN1inAnotherCollection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/names.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/multi_write_target.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/multi_mongos2a.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/multi_mongos2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/multi_coll_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mr_shard_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mr_noscripting.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mr_and_agg_versioning.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mrShardedOutputAuth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mrShardedOutput.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movechunk_with_noMoveParanoia.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movechunk_with_moveParanoia.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movechunk_with_default_paranoia.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movechunk_parallel.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movechunk_interrupt_at_primary_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movechunk_include.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movechunk_commit_changelog_stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_stale_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_primary_with_test_flag.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_primary_fcv_40.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_primary_fails_without_database_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_primary_clone_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_primary_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_with_session_helper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_update_with_write_retryability.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_remove_with_write_retryability.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_open_cursors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_missing_idx.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_insert_with_write_retryability.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_find_and_modify_with_write_retryability.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/move_chunk_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/movePrimary1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/moveChunk_recipient_rejects_chunk_if_UUID_mismatch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_wait_csrs_initiate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_validate_writes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_shard_failure_tolerance.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_rs_shard_failure_tolerance.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_rs_auth_shard_failure_tolerance.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_query_comment.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_no_replica_set_refresh.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_no_detect_sharding.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_local_explain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongos_does_not_gossip_logical_time_without_keys.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mongod_returns_no_cluster_time_without_keys.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/missing_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/min_optime_recovery_on_successful_move_chunk_commit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/min_optime_recovery_on_failed_move_chunk_commit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_with_source_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_sets_fromMigrate_flag.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_server_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_move_chunk_after_receive.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_ignore_interrupts_4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_ignore_interrupts_3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_ignore_interrupts_2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_ignore_interrupts_1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_id_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_failure.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migration_critical_section_concurrency.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migrate_overwrite_id.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migrateBig_balancer.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/migrateBig.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/merge_chunks_test_with_md_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/merge_chunks_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/merge_chunks_compound_shard_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/max_time_ms_sharded_new_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/max_time_ms_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/map_reduce_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mapReduce_outSharded_checkUUID.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mapReduce_outSharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mapReduce_nonSharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mapReduce_inSharded_outSharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/mapReduce_inSharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/major_version_check.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/lookup_change_stream_post_image_id_shard_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/lookup_change_stream_post_image_hashed_shard_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/lookup_change_stream_post_image_compound_shard_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/logical_time_metadata.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/logical_time_api.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/localhostAuthBypass.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/listshards.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/listDatabases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/linearizable_read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/limit_push.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/large_skip_one_shard.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/large_chunk.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/lagged_config_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/killop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/kill_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/kill_pinned_cursor.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/kill_op_overflow.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/keys_rotation_interval_sec.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/key_string.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/key_rotation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/key_many.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/jumbo1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/json_schema.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/ismaster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/inserts_consistent.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/initial_split_validate_shard_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/index_and_collection_option_propagation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/index1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/in_memory_sort_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/implicit_db_creation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/idhack_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/hash_single_shard.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/hash_shard_unique_compound.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/hash_shard_num_chunks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/hash_shard_non_empty.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/hash_shard1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/hash_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/group_slaveok.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/geo_near_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/geo_near_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/geo_near_random2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/geo_near_random1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/fts_score_sort_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/forget_mr_temp_ns.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/findandmodify2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/findandmodify1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/find_getmore_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/find_and_modify_after_multi_write.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/features3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/features2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/features1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/explain_read_pref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/explain_find_and_modify_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/explain_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/explain_agg_read_pref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/explainFind_stale_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/exact_shard_key_target.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/error_propagation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/error_during_agg_getmore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/enforce_zone_policy.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/enable_sharding_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/empty_doc_results.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/empty_cluster_init.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/dump_coll_metadata.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/drop_sharded_db_tags_cleanup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/drop_sharded_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/drop_configdb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/disable_autosplit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/diffservers1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/delete_during_migrate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/database_versioning_upgrade_downgrade.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/database_versioning_safe_secondary_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/database_and_shard_versioning_all_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cursor_valid_after_shard_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cursor_timeout.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cursor_cleanup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cursor1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/current_op_no_shards.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/create_idx_empty_primary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/create_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/crash_mongos_against_upgraded_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/covered_shard_key_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/count_slaveok.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/count_config_servers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/count2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/count1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/copydb_from_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/convert_to_and_from_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/conn_pool_stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/configsvr_metadata_commands_require_majority_write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/config_rs_no_primary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/config_rs_change.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/conf_server_write_concern_metadata.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/commands_that_write_accept_wc_shards.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/commands_that_write_accept_wc_configRS.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/collation_targeting_inherited.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/collation_targeting.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/coll_epoch_test2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/coll_epoch_test1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/coll_epoch_test0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/clone_catalog_data.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned_compound.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned_cmd_prereload.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned_cmd_hashed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned_cmd_during_movechunk_hashed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned_cmd_during_movechunk.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/cleanup_orphaned.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_streams_whole_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_streams_unsharded_becomes_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_streams_shards_start_in_sync.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_streams_primary_shard_unaware.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_streams_establishment_finds_new_shards.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_streams.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_update_lookup_read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_update_lookup_collation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_shard_failover.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_resume_from_different_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_read_preference.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_no_shards.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_metadata_notifications.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_lookup_single_shard_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_enforce_max_time_ms_on_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/change_stream_chunk_migration.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/causal_consistency_shell_support.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/bulk_shard_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/bulk_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/bouncing_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/batch_write_command_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/basic_split.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/basic_sharding_params.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/basic_merge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/basic_drop_coll.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/balancer_window.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/balancer_shell_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/balance_repl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/autosplit_with_balancer.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/autosplit_heuristics.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/autosplit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/autodiscover_config_rs_from_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auto_rebalance_parallel_replica_sets.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auto_rebalance_parallel.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/authwhere.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/authmr.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth_slaveok_routing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth_sharding_cmd_metadata.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth_repl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth_no_config_primary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth_copydb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth_add_shard.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/authConnectionHook.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/authCommands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/array_shard_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/arbiters_do_not_use_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/allow_partial_results.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/all_config_servers_blackholed_from_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/aggregations_in_session.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/aggregation_currentop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/agg_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/agg_project_limit_pipe_split.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/after_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/advance_logical_time_with_valid_signature.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/advance_cluster_time_action_type.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/addshard_idempotent.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/addshard6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/addshard5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/addshard4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/addshard2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/addshard1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/add_shard_to_zone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/accurate_count_with_predicate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding/SERVER-7379.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/serial_run/srv-uri.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/serial_run/memory.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/serial_run/index_multi.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/serial_run/README + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/zero_vote_arbiter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/write_concern_after_stepdown_and_stepup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/write_concern_after_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/view_definition_initial_sync_with_feature_compatibility.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/user_management_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/uninitialized_fcv_access.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/two_nodes_priority_take_over.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/transient_txn_error_labels.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/transactions_reaped_with_tickets_exhausted.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/transactions_only_allowed_on_primaries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/transactions_after_rollback_via_refetch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/transaction_table_oplog_replay.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/transaction_table_multi_statement_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/transaction_commit_abort_on_secondaries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/too_stale_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/test_command.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/temp_namespace_restart_as_standalone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/temp_namespace.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/tags_with_reconfig.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/tags2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/tags.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/system_profile_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/system_profile.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/sync_passive.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/sync2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/storage_commit_out_of_order.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown_needs_majority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown_needs_electable_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown_long_wait_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown_killop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown_kill_other_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown_catch_up_opt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/step_down_during_draining3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/step_down_during_draining2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/step_down_during_draining.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/startParallelShell.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/speculative_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/speculative_read_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/slaveok_read_pref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/slavedelay3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/slavedelay1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/slave_delay_clean_shutdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/sized_zero_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/single_server_majority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/shutdown_primary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/shutdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/sessions_collection_auto_healing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/server_status_repl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/server_status_metrics.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/server8070.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/secondary_reads_unique_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/secondary_reads_timestamp_visibility.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rslib.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_with_socket_error_then_steady_state.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_waits_for_bgindex_completion.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_views.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_transactions_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_transaction_table.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_time_limit_param.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_rename_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_rename_collection_on_sync_source.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_remote_cursor_retry.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_drop_index_after_rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_drop_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_different_h.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_ddl_op_sequences.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_crud_op_sequences.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_creates_rollback_directory.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_collmods.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_collMod_fatal.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_cmd_unrollbackable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_capped_deletions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rollback_all_op_types.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/retryable_writes_failover.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/retryable_writes_direct_write_to_config_transactions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/retryable_write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/retryable_commit_transaction_after_restart.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/retryable_commit_transaction_after_failover.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/restore_term.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/request_primary_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replsets_killop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replsetrestart1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replsetprio1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replsethostnametrim.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replsetfreeze.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replsetarb2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replsetadd_profile.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replset8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replset6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replset5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replset4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replset3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replset2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/replset1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/repl_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rename_collection_temp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rename_across_dbs_drop_target.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/rename_across_dbs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/remove1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/reindex_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/refresh_sessions_rs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/recovery_after_clean_shutdown_but_not_all_writes_in_snapshot.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/reconfig_tags.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/reconfig_prohibits_w0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/reconfig.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_majority_two_arbs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_concern_uninitated_set.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_concern_majority_getmore_secondaries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_committed_with_catalog_changes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_committed_stale_history.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_committed_on_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_committed_no_snapshots.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_committed_lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_committed_after_rollback.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_committed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/read_after_optime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/priority_takeover_two_nodes_equal_priority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/priority_takeover_one_node_higher_priority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/priority_takeover_cascading_priorities.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/primary_casts_vote_on_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/plan_cache_slaveok.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/pipelineout.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/optime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_wallclock.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_truncated_on_recovery.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_term.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_replay_on_startup_with_bad_op.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_replay_on_startup_update_and_delete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_replay_on_startup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_note_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_format_create_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/oplog_format.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/operation_time_read_and_write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/noop_writes_wait_for_write_concern_fcv.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/noop_writes_wait_for_write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/no_flapping_during_network_partition.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/no_chaining.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/mr_nonrepl_coll_in_local_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/mmap_disallows_rc_majority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/minimum_visible_with_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/maxSyncSourceLagSecs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/maintenance_non-blocking.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/maintenance2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/maintenance.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/localhostAuthBypass.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/localhost3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/localhost2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/localhost1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/linearizable_read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/two_phase_drops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/tags.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/secondary_reads_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/rollback_test_deluxe.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/rollback_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/rename_across_dbs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/election_handoff.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/apply_ops_insert_write_conflict.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs/apply_ops_concurrent_non_atomic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/lastop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/last_vote.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/last_op_visible.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/ismaster1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/invalid_index_spec.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/interrupted_batch_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initiate_prohibits_w0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initiate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_with_write_load.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_visibility.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_views.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_uuid_not_found.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_update_missing_doc3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_update_missing_doc2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_update_missing_doc1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_unsupported_auth_schema.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_replSetGetStatus.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_rename_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_read_concern_no_oplog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_oplog_rollover.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_move_forward.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_invalid_views.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_invalid_index_spec.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_fcv.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_fail_insert_once.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_drop_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_document_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_cloner_dups.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_capped_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync_applier_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/initial_sync1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/index_restart_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/index_delete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/id_index_replication.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/groupAndMapReduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/get_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/get_replication_info_helper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/fsync_lock_read_secondaries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/force_sync_source_candidate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/find_and_modify_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/explain_slaveok.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/emptycapped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/election_handoff_one_unelectable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/election_handoff_higher_priority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/election_handoff_flip.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/election_handoff_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_oplog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_databases_two_phase.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_step_down.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_rename_drop_target.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_long_index_names.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_dbhash.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_apply_ops_rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_apply_ops_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_apply_ops_create.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase_apply_ops_convert_to_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drop_collections_two_phase.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/drain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/double_rollback_early.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/double_rollback.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/disallow_adding_initialized_node2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/disallow_adding_initialized_node1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/dbhash_system_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/dbhash_lock_acquisition.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/dbhash_at_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/dbcheck.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/copydb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/config_server_checks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/commands_that_write_accept_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/command_response_operation_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/collection_validator_initial_sync_with_feature_compatibility.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/collate_id.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/cloneDb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/clean_shutdown_oplog_state.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/chaining_removal.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/catchup_takeover_two_nodes_ahead.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/catchup_takeover_one_high_priority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/catchup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/capped_insert_order.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/bulk_api_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/buildindexes_false_with_system_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/buildindexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/batch_write_command_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/background_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/awaitdata_getmore_new_last_committed_optime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/await_replication_timeout.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/auth_no_pri.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/auth2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/auth1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_lastop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_insert_write_conflict_nonatomic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_insert_write_conflict_atomic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_idempotency.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_create_with_uuid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_create_view.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_create_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_concurrent_non_atomic_same_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_concurrent_non_atomic_same_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_ops_concurrent_non_atomic_different_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_batches_totalMillis.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/apply_batch_only_goes_forward.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/already_checked_out_session.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/write_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/temp_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/server_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/lib/read_only_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/get_more.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/geo.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/find.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/distinct.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/catalog_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/aggregate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf/v8_mapreduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf/remove1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf/mr_bench.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf/index1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf/geo_near1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf/find1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf/compact_speed_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/update_serializability2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/update_serializability1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/shellfork.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/manyclients.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/del.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/checkMultiThread.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/basicPlus.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel/allops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/wt_roundtrip_creation_string.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/views_invalid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/validate_interrupt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/validate_command.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/ttl_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/ttl_repl_secondary_disabled.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/ttl_repl_maintenance.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/ttl_repl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/ttl1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/top_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/testing_only_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/temp_namespace.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/tailable_getmore_does_not_timeout.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/shelllimit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/shell_advance_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/sharding_rs_arb1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/sharding_migrate_large_docs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/server7428.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/rpc_protocols.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/replset_host_connection_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/replReads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/remove9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/recstore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/reconfigwt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/query_oplogreplay.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/parallel_collection_scan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/no_balance_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/newcollection2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/mr_writeconflict.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/mr_noscripting.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/moveprimary-replset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/mapreduce_intermediate_reduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/logpath.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/log_component_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/isMaster_feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/ipv6_connection_string_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/invalidation_during_resolve_view.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/insertMulti.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/indexbg_updates.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/indexbg_restart_secondary_noretry.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/indexbg_restart_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/indexbg_interrupts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/indexbg_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/index_hammer1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/index_check9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/index_check10.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/index_boundary_values_validate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/huge_multikey_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/host_connection_string_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/getmore_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/getmore_awaitdata_opcounters.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/geo_polygon.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/geo_near_random2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/geo_near_random1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/geo_mnypts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/geo_axis_aligned.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/ftdc_params.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/find_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/find_and_modify_server16469.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/external_sort_text_agg.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/explain3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/explain2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/explain1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/eval_with_godinsert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/dup_bgindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/default_read_pref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/dbcommand_cursor_throws_on_closed_conn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/cursor_server_status_metrics.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/currentop_includes_connid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/connections_opened.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/commands_that_write_accept_wc_standalone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/clonecollection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/capped_truncate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/capped4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/bulk_api_limits.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/btreedel.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/benchrun_substitution.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/bench_test_crud_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/background.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod/apply_ops_errors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/yield_group.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/yield_during_writes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_unclean_shutdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_prepare_conflict.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_nojournal_toggle.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_nojournal_skip_recovery.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_nojournal_fsync.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_malformed_creation_string.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_index_option_defaults.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_disable_majority_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_delayed_secondary_read_concern_majority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/wt_cache_full.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/write_local.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/views_legacy.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/verify_session_cache_updates.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/utf8_paths.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/update_server-5552.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/update_post_image_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/unsupported_change_stream_deployments.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/unix_socket.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/ttl_partial_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/ttl_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/transactions_enabled_in_memory_parameter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/transaction_reaper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/transactionLifetimeLimitSeconds_setParameter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/timestamp_index_builds.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/thread_args.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/tailable_getmore_to_mongos_does_not_timeout.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/system_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/sync_write.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/stepdown_query.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/startup_logging.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/start_session_command.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/standalone_replication_recovery.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/split_collections_and_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/snapshot_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/snapshot_cursor_integrity.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/skip_sharding_configuration_checks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_write_assertions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_session_option_defaults.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_retry_writes_uri.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_retry_writes_on_retryable_errors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_quit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_history.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_helper_use_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_gossip_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_error_codes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_cmd_assertions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_can_use_read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_can_retry_writes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_assertions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shell_appname_uri.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/shard_fixture_selftest.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/sessions_collection_auto_healing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/server_transaction_metrics.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/server_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/rollback_wt_cache_full.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/retryable_writes_standalone_api.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/retryable_writes_mmap.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/retry_network_error_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/restart_node_with_bridge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/restart_catalog_sharded_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/restart_catalog_preserves_min_visible.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/replica_set_connection_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/replica_set_connection_getmore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/replica_set_connection_error_codes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/repl_write_threads_start_param.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/repair_flag_transport_layer.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/repair2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/refresh_sessions_internal_command.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/refresh_sessions_command.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/refresh_logical_session_cache_now.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/recovery_wt_cache_full.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/rebuild_multiple_indexes_at_startup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/read_only_command_line.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/read_majority_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/read_majority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/read_concern_snapshot_yielding.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/read_concern_snapshot_catalog_invalidation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/read_concern_snapshot_aggregation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/read_concern_helper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/readConcern_snapshot_mongos_enable_test_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/readConcern_snapshot_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/readConcern_snapshot.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/readConcern_atClusterTime_snapshot_selection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/readConcern_atClusterTime_noop_write.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/readConcern_atClusterTime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/queryable_backup_mode_incompatible_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/query_yield_reset_timer.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/query_yield2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/query_yield1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/profile_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/profile_agg_multiple_batches.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/prepare_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/prepare_conflict.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/port_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/plan_cache_index_create.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/partial_unique_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/parse_zone_info.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/parameters.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/ns1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/noncapped_oplog_creation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/non_atomic_apply_ops_logging.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/nested_tojson.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/mongoebench_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/minvalid2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/minvalid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/max_bson_depth_parameter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/max_acceptable_logical_clock_drift_secs_parameter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/low_js_heap_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/loglong.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/logical_session_cursor_checks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/logical_session_cache_find_getmore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/logging_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/log_format_slowms_samplerate_loglevel.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/log_find_getmore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/lock_stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/lock_file_fail_to_open.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/lock_file.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/list_indexes_only_ready_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/list_databases_and_rename_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/libs/index_build.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/libs/concurrent_rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/libs/backup_restore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/launcher_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/latency_includes_lock_acquisition_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/killop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/kill_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/kill_pinned_cursor.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/json_schema_ignore_unknown_keywords.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/js_protection_roundtrip.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/js_protection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/jsHeapLimit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/javascript_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/internal_validate_features_as_master.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/inmem_full.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/inmem_config_str.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/initial_sync_wt_cache_full.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/indexbg_shutdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/indexbg2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/indexbg1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/index_version_v2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/index_version_autoupgrade.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/index_partial_no_explain_cmds.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/index_killop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/implicit_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/hostname_bind_ips.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/group_interrupt_js_execution.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/global_transaction_latency_histogram.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/global_operation_latency_histogram.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/geo_near_random2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/geo_near_random1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/geo_mnypts_plus_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/geo_full.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/ftdc_setparam.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/ftdc_setdirectory.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/find_by_uuid_and_rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/filemd5_kill_during_yield.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/failcommand_failpoint.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/exit_logging.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/exhaust_option_disallowed_in_session.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/end_sessions_command.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/durable_view_catalog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/dropcollection_duplicate_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/document_count_functions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/do_not_rebuild_indexes_before_repair.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/diskFull.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/disable_majority_reads_restart.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/directoryperdb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/dir_per_db_and_split.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/devnull.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/dbhash_capped_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/data_consistency_checks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/cycle_detection_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/cursor_timeout_interrupt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/currentop_transaction_metrics.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/currentop_query.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/currentop_includes_await_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/currentop_inactive_transaction_includes_last_client_info.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/currentop_active_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/crud_timestamps.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/cross_user_getmore_has_no_side_effects.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/count_helper_read_preference.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/copydb_illegal_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/compression_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/commands_preserve_exec_error_code.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/commands_handle_kill.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/command_line_parsing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/collation_clone_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/coll_mod_apply_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/closeAll_with_background_ops_fails_safely.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/client_metadata_slowlog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/client_metadata_log.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/change_streams_update_lookup_collation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/change_streams_required_privileges.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/change_streams_require_majority_read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/change_stream_failover.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/change_stream_concurrent_implicit_db_create.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/bind_all_ipv6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/backup_restore_stop_start.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/backup_restore_rolling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/backup_restore_fsync_lock.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/auto_retry_on_network_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/auth_reject_mismatching_logical_times.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/atomic_rename_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/apply_ops_overwrite_admin_system_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/apply_ops_mode.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/aggregation_zero_batchsize.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/aggregation_cursor_invalidations.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/agg_explain_read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/after_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/afterClusterTime_committed_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/view_definition_feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/verify_versions_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/upgrade_downgrade_while_creating_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/upgrade_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/transitioning_to_and_from_WT.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/startup_without_UUIDs_fails.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/set_feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/rollback_latest_to_last_stable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/rollback_last_stable_to_latest.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/repair_feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/rename_across_dbs_last_stable_secondary_drop_target.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/rename_across_dbs_last_stable_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/rename_across_dbs_last_stable_primary_drop_target.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/rename_across_dbs_last_stable_primary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/remove_feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/new_mongos_old_mongod_wire_version_clash.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/mixed_storage_version_replication.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/minor_version_upgrade_replset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/minor_version_tags_old_new_old.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/minor_version_tags_new_old_new.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/migration_between_mixed_version_mongods.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/migration_between_mixed_FCV_mixed_version_mongods.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/major_version_upgrade.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/verify_versions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/verify_collection_data.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/multiversion_rollback.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/multi_rs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/multi_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/initial_sync.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/dumprestore_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/data_generators.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/causal_consistency_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs/auth_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/initialize_from_old_node.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/initial_sync_latest_from_last_stable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/initial_sync_last_stable_from_latest.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/feature_compatibility_version_lagging_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/fcv_db_versioning.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/fcv_chunk_history.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/ensure_last_applied_on_upgrade_to_40.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/dumprestore_sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/dumprestore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/drop_mmap_system_collections_on_wt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/downgrade_to_36_only_with_recovered_data.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/downgrade_replset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/do_upgrade_downgrade.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/collection_validator_feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/change_streams_feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/change_stream_in_session_last_stable_mongos.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/cannot_create_system_dot_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/balancer_multiVersion_detect.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/add_invalid_shard.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/3_upgrade_replset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/2_test_launching_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/1_test_launching_replset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/use_power_of_2_a.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/use_power_of_2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/touch1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/syncdelay_overflow.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/reverse_empty_extent.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/repair_cursor1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/list_indexes2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/list_collections2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/indexi.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/indexh.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/index_check1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/extent2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/extent.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/dur_remove_old_journals.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/disk_reuse1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/datasize3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/datasize.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/compactPreservePadding.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/compact.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/collmod.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped_server7543.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped_server2639.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped_server13912.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped_max.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1/capped2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/write_concern_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/uuid_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/txns/txn_passthrough_runner_selftest.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/txns/txn_passthrough_runner.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/txns/txn_override.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/trusted-server.pfx + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/trusted-server.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/trusted-client.pfx + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/trusted-client.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/trusted-ca.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/trace_missing_docs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/testconfig + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/test_background_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/ssl_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/specific_secondary_reader_mongo.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/smoke.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/sessions_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/server.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/retryable_writes_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/read_committed_lib.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/profiler.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/password_protected.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/parallel_shell_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/parallelTester.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/validate_collections_on_shutdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/sharding_continuous_config_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/set_read_preference_secondary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/set_read_and_write_concerns.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/retry_writes_at_least_once.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/override_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/mongos_manual_intervention_actions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/implicitly_wrap_pipelines_in_facets.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/implicitly_shard_accessed_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/implicitly_retry_on_database_drop_pending.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/implicit_whole_db_changestreams.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/implicit_whole_cluster_changestreams.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/find_batch_size.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/fail_unclean_shutdown_start_parallel_shell.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/fail_unclean_shutdown_incompatible_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/enable_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/enable_causal_consistency_without_read_pref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/enable_causal_consistency.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/detect_spawning_own_mongod.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/continuous_stepdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/check_uuids_consistent_across_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/check_for_operation_not_supported_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods/auto_retry_on_network_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/not_yet_valid.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/namespace_utils.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/mongoebench.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/mongodbauthorizationgrant.cnf + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/mockuser.keytab + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/mockservice.keytab + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/mockkrb5.conf + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/localhostnameSAN.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/localhostnameCN.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/kill_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/key2 + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/key1_644 + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/key1 + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/jstestfuzz/hook_utils.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/jstestfuzz/check_for_interrupt_hook.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/json_schema_test_runner.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/host_ipaddr.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/global_snapshot_reads_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/get_index_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/geo_near_random.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/geo_math.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/fts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/ftdc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/fsm_serial_client.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/fixture_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/feature_compatibility_version.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/expired.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/dur_checksum_good.journal + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/dur_checksum_bad_last.journal + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/dur_checksum_bad_first.journal + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/discover_topology.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/dateutil.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/database_versioning.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/cycle_detection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/csrs_upgrade_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/crl_expired.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/crl_client_revoked.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/crl.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/set_verbosity.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/set_shardingrole.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/set_replsetname.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/set_profiling.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/set_component_verbosity.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/implicitly_enable_nojournal.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/implicitly_enable_nodur.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/implicitly_enable_journal.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/implicitly_enable_dur.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/good_timezone_info/GMT + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_unixsocket.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_scripting.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_prealloc.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_paranoia.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_objcheck.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_journal.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_indexbuildretry.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/enable_auth.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_objcheck.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_nounixsocket.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_noscripting.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_noprealloc.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_noobjcheck.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_nomoveparanoia.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_nojournal.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_noindexbuildretry.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_nodur.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_noauth.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_moveparanoia.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_jsonp.json + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_journal.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_ipv6.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_dur.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/disable_auth.ini + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/bad_timezone_info/InvalidVersion + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/command_sequence_with_retries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/command_line/test_parsed_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/collection_drop_recreate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/cluster_cert.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_utf8.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_utf8.cnf + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_title.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_roles.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_revoked.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_privatekey.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_escape.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client_email.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client-self-signed.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client-multivalue-rdn.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client-custom-oids.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client-custom-oids.csr.in + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client-all-the-oids.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/client-all-the-oids.csr.in + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/cleanup_orphaned_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/chunk_manipulation_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/check_uuids.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/check_unique_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/check_log.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/change_stream_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/ca.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/badSAN.pem + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/authTestsKey + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/assert_schema_match.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/analyze_plan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/README.ssl + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/8k-prime.dhparam + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/httpinterface/sharding_configdb_on_default_ports.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/httpinterface/network_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks/validate_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks/run_validate_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks/run_initial_sync_node_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks/run_check_repl_oplogs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks/run_check_repl_dbhash_background.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks/run_check_repl_dbhash.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks/crud_client.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/updated_existing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/opcounters_legacy.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/gle_sharded_write.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/gle_sharded_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/gle_explicit_optime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/get_last_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/create_index_gle.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/core/update4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/core/remove5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/core/gle_shell_server5441.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/core/gle_example.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/core/error1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs/mock_http_server.py + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs/mock_http_control.py + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs/mock_http_common.py + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs/free_mon.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_server_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_rs_resend.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_rs_register.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_rs_perm_del.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_rs_off.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_rs_halt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_rs_delete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_rs_corrupt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_register_resend.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_register_off.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_register_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_register.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_metrics_perm_del.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_metrics_halt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_http_validate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_http_down.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_disable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/free_mon_announce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/fail_point/set_failpoint_through_set_parameter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/fail_point/fail_point.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/lsn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/journaling_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/indexbg2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/indexbg.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/dur2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/diskfull.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/data/empty.bson + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/closeall.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/checksum.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/wt_repair_orphaned_idents.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/wt_repair_missing_files.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/wt_repair_corrupt_metadata.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/wt_repair_corrupt_files.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/wt_missing_file_errors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/wt_corrupt_file_errors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/too_many_fds.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair_invalidates_replica_set_config.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair_failure_is_recoverable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair_does_not_invalidate_config_on_standalone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/repair.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/quota3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/quota2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/quota.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/preallocate_directoryperdb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/preallocate2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/preallocate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/parallel_collection_scan_on_capped_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/newcollection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/libs/wt_file_helper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/killall.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/index_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/filesize.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/diskfull.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/directoryperdb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/dbNoCreate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/datafile_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal_roundtrip_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal_find_query.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal_find_mixed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal_find_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal_constructors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal128_test7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal128_test6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal128_test5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal128_test4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal128_test3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal128_test2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal/decimal128_test1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core_standalone/write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core_standalone/read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/write_result.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/write_commands_reject_unknown_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/where5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/where4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/where3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/where2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/where1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_find.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_distinct.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_creation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_collation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_coll_stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_change.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_all_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/views_aggregation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/invalid_system_views.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views/duplicate_ns.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/verify_update_mods.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/validate_user_documents.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/validate_cmd_ns.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/user_management_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/useindexonobjgtlt.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/upsert_shell.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/upsert_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/upsert_and.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatem.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatel.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatek.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatej.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatei.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updateh.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updateg.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatef.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatee.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updated.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatec.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updateb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/updatea.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_setOnInsert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_server-12848.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_multi6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_multi5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_multi4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_multi3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_mul_examples.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_modifier_pop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_min_max_examples.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_invalid1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_find_and_modify_id.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_dbref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_currentdate_examples.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_blank1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_bit_examples.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arraymatch1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_array_offset_positional.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_arrayFilters.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_affects_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_addToSet3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_addToSet2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update_addToSet.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/update2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/unset2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/unset.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/uniqueness.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type_array.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/type1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/write_conflicts_with_non_txns.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/view_reads_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/upconvert_read_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/transactions_write_conflicts_unique_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/transactions_write_conflicts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/transactions_profiling_with_drops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/transactions_profiling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/transactions_block_ddl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/transaction_error_handling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/statement_ids_accepted.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/start_transaction_with_read.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/speculative_snapshot_includes_all_writes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/shell_prompt_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/repeatable_reads_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/read_own_multikey_writes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/only_allow_transactions_on_FCV_40.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/noop_createIndexes_not_blocked_by_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/non_transactional_operations_on_session_with_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/no_writes_to_system_collections_in_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/no_read_or_write_concern_inside_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/no_read_concern_snapshot_outside_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/no_implicit_collection_creation_in_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/multi_update_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/multi_statement_transaction_using_api.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/multi_statement_transaction_command_args.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/multi_statement_transaction_abort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/multi_statement_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/multi_delete_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/list_collections_not_blocked_by_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/libs/write_conflicts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/kill_txn_cursor.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/kill_transaction_cursors_after_commit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/kill_sessions_kills_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/kill_op_on_txn_expiry.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/kill_cursors_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/finished_transaction_error_handling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/find_and_modify_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/do_txn_basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/do_txn_atomicity.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/concurrent_drops_and_creates.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/commands_not_allowed_in_txn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/basic_causal_consistency.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/banned_txn_dbs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/ban_tailable_cursor.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/aggregation_in_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/abort_transactions_on_FCV_downgrade.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/abort_transaction_thread_does_not_block_on_locks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/abort_expired_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ts1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/top.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/throw_big.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/text_covered_matching.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/testminmax.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/test_command_line_test_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/temp_cleanup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/tailable_skip_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/tailable_getmore_batch_size.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/tailable_cursor_invalidation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/system_profile.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sub1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/string_with_nul_bytes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/storefunc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/startup_log.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_text.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_or.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_mergesort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_limit_skip.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_ixscan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_fetch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_delete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_collection_scan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_and_sorted.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/stages_and_hash.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/splitvector.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortk.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortj.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sorti.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sorth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortg.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortf.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sortb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sorta.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort_numeric.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort_array.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort10.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/sort1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/slice1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/skip1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/single_batch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/show_record_id.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/shelltypes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/shellstartparallel.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/shellkillop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/shell_writeconcern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/shell_connection_strings.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/shell1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set_type_change.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set_param1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/set1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server9547.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server9385.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server7756.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server5346.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server25192.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server22053.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server14753.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server14747.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/server1470.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/run_program1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/role_management_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/return_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/restart_catalog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/repair_server12955.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/repair_database_input_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/repair_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename_stayTemp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename_change_target_type.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/removec.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/removeb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/removea.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove_undefined.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove_justone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/remove.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regexc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regexb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regexa.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex_verbs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex_util.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex_unicode.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex_not_id.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex_embed1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/regex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ref4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ref3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ref2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ref.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/recursion.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/record_store_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/read_after_optime.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/queryoptimizera.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/queryoptimizer6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/queryoptimizer3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/query1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/push_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/push2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/push.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/pullall2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/pullall.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/pull_remove1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/pull_or.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/pull2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/pull.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/projection_dotted_paths.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/proj_key1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_sampling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_repair_cursor.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_parallel_collection_scan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_no_such_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_mapreduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_list_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_list_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_group.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_getmore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_geonear.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_findandmodify.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_find.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_distinct.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_delete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile_agg.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/profile1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/pop_server_13516.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/plan_cache_shell_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/plan_cache_list_shapes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/plan_cache_list_plans.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/plan_cache_clear.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/orp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/oro.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ork.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/orj.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/orh.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/org.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/orf.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ord.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/orc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/orb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ora.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or_inexact.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or_always_false.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/or1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/optimized_match_explain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/optime_cmp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/operation_latency_histogram.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/opcounters_write_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/opcounters_active.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/objid7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/objid6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/objid5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/objid4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/objid3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/objid2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/objid1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/numberlong4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/numberlong3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/numberlong2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/numberlong.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/numberint.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/null_field_name.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/null2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/null.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ns_length.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/notablescan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/not3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/not2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/not1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/no_db_created.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/nin2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/nin.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/nestedobj1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/nestedarr1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ne3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ne2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ne1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/natural.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/nan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/multikey_geonear.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/multi2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/multi.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_undef.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_tolerates_js_exception.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_stored.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_replaceIntoDB.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_outreduce2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_outreduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_optim.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_mutable_properties.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_merge2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_merge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_killop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_index3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_index2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_errorhandling.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_comments.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_bigobject_replace.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr_bigobject.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mr1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/mod1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/minmax_edge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/minmax.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/min_max_bounds.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/maxscan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/max_time_ms.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/max_doc_size.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/map1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/long_index_rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/logprocessdetails.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/loadserverscripts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_namespaces_invalidation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_local_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_indexes_non_existent_ns.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_indexes_invalidation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_indexes_invalid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_databases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_collections_no_views.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_collections_name_only.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_collections_filter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_collections1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_all_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_all_local_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/list_all_local_cursors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/killop_drop_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/kill_cursors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/jssymbol.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/unique_items.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/required.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/pattern_properties.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/misc_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/min_max_properties.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/min_max_items.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/logical_keywords.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/json_schema.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/items.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/dependencies.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/bsontype.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/additional_properties.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema/additional_items.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js_jit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/js1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ismaster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/invalid_db_name.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/insert_one.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/insert_long_index_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/insert_illegal_doc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/insert_id_undefined.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/insert2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/insert1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexv.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexu.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indext.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexr.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexn.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexm.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexj.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexg.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexf.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexes_on_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexes_multiple_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexe.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexapi.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexa.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_type_change.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_stats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_sparse2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_sparse1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_plugins.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_partial_write_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_partial_validate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_partial_read_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_partial_create_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_partial_2dsphere.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_multiple_compatibility.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_many2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_many.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_id_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_filter_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_elemmatch2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_elemmatch1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_dropdups_ignore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_diag.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_decimal.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_create_with_nul_in_name.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_create_too_many.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_check7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_check6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_check5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_check3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_check2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bounds_timestamp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bounds_pipe.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bounds_object.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bounds_number_edge_cases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bounds_minkey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bounds_maxkey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bounds_code.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bigkeys_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bigkeys_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bigkeys_nofail.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_bigkeys.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_big1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_arr2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index_arr1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/indexOtherNamespace.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index13.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/index1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/inc3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/inc2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/inc1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/inc-SERVER-7446.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/in.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/idhack.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/id1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/hostinfo.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/hint1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/hashindex1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/grow_hash_table.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group_empty.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/group1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/getmore_invalidated_documents.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/getmore_invalidated_cursors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/getmore_cmd_maxtimems.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/getlog2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/getlog1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geonear_key.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geonear_cmd_input_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geof.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geoe.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geod.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geoc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geob.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geoa.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_withinquery.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_validate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_update_dedup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_update_btree2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_update_btree.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_update2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_update1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_uniqueDocs2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_uniqueDocs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_sort1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_small_large.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2within_line_polygon_sphere.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2within.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2validindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2twofields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2sparse.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2selfintersectingpoly.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2polywithholes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2overlappingpolys.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2ordering.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2oddshapes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2nopoints.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2nonstring.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2nongeoarray.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2nearwithin.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2nearcorrect.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2near_equator_opposite.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2nearComplex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2near.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2multi.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2meridian.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2largewithin.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2intersection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2indexversion1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2indexoldformat.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2holesameasshell.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2explain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2exact.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2edgecases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2dupe_points.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2disjoint_holes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2descindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2dedupnear.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_s2cursorlimitskip.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_regex0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_queryoptimizer.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_polygon3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_polygon2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_polygon1_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_polygon1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_poly_line.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_poly_edge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_or.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_operator_crs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_oob_sphere.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_nearwithin.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_near_random2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_near_random1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_multinest1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_multinest0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_multikey1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_multikey0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_mindistance_boundaries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_mindistance.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_max.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_mapreduce2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_mapreduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_invalid_polygon.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_invalid_2d_params.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_haystack3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_haystack2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_haystack1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_group.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_fiddly_box2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_fiddly_box.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_exactfetch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_distinct.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_circle5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_circle4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_circle3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_circle2a.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_circle2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_circle1_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_circle1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_center_sphere2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_center_sphere1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_box3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_box2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_box1_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_box1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_borders.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_big_polygon3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_big_polygon2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_big_polygon.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_array2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_array1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_array0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_allowedcomparisons.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_2d_with_geojson_point.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_2d_trailing_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo_2d_explain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo10.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/geo1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/function_string_representations.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_trailing_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_spanish.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_score_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_querylang.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_projection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_proj.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_phrase.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_partition_no_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_partition1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_mix.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_index_version2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_index_version1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_index3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_index2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_explain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_dotted_prefix_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_diacriticsensitive.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_diacritic_and_casesensitive.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_diacritic_and_caseinsensitive.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_casesensitive.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_blogwild.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_blog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts_array.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fts1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fsync.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fm4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fm3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fm2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/fm1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/finda.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_size.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_getmore_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_getmore_bsonsize.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_dedup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_where.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server7660.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6993.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6909.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6865.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6659.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6588.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6582.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6254.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_server6226.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_empty_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_empty_coll.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify_concurrent_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find_and_modify.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/find2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/filemd5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/field_name_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/expr_valid_positions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/expr_or_pushdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/expr_index_use.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/expr.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_upsert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_shell_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_multi_plan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_missing_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_missing_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_large_bounds.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_find_and_modify.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_find.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_execution_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_distinct.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_delete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_db_mismatch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_batch_size.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain_agg_write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/explain1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/existsb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/existsa.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exists.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/exhaust.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/evalj.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/evalh.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/evalg.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/evale.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/evald.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/evalb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/evala.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval_wait_for_read_write_concern.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval_nolock.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval_mr.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/eval0.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/error5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/error2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/ensure_sorted.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/elemmatch_or_pushdown.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/elemMatchProjection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dropdb_race.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dropdb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/drop_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/drop3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/doc_validation_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/doc_validation_invalid_validators.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/doc_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct_index2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct_index1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct_compound_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct_array1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/distinct1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/diagdata.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/depth_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/delx.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbstats.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbref4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbref3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbref2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbref1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbhash2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbhash.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbcase2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbcase.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/dbadmin.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/date3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/date2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/date1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/datasize2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursora.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursor7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursor6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursor5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursor4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursor3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursor2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cursor1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/currentop_predicate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/currentop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/crud_api.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/create_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/create_collection_fail_cleanup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/create_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_sort_3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_sort_2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_sort_1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_simple_id.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_simple_3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_simple_2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_simple_1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_negative_1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/covered_index_compound_1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/coveredIndex4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/coveredIndex3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/coveredIndex2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/coveredIndex1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/countc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/countb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/counta.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count_plan_summary.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count_hint.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count11.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count10.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/copydb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/convert_to_capped_nonexistant.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/convert_to_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/constructors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/connection_string_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/connection_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/compare_timestamps.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/compact_keeps_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/commands_with_uuid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/commands_that_do_not_write_do_not_accept_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/commands_namespace_parsing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collmod_without_uuid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collmod_bad_spec.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collmod.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collection_truncate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collation_with_reverse_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collation_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collation_plan_cache.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collation_convert_to_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/collation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/clone_as_capped_nonexistant.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/client_metadata_ismaster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cleanup_orphaned.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/check_shard_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cappeda.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped_queries_and_id_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped_max1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped_empty.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped_convertToCapped1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/cannot_create_system_dot_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bypass_doc_validation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bulk_legacy_enforce_gle.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bulk_insert_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bulk_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bulk_api_unordered.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bulk_api_ordered.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bson.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bittest.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bindata_indexonly.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/binData.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bench_test3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bench_test2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bench_test1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/batch_write_command_wc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/batch_write_command_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/batch_write_command_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/batch_write_command_delete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/batch_write_collation_estsize.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/batch_size.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basica.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basic8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basic7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basic6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basic5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basic4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basic2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/basic1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/bad_index_plugin.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/background_index_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/awaitdata_getmore_cmd.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/automation_setparameter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/autoid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/autocomplete.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/auth_copydb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/auth2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/auth1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfindb.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfinda.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind9.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind8.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind7.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind6.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/arrayfind1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/array_match4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/array_match3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/array_match2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/array_match1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/array4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/array3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/array1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apply_ops_without_ns.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apply_ops_invalid_index_spec.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apply_ops_index_collation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apply_ops_dups.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apply_ops2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apply_ops1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apitest_dbcollection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apitest_db_profile_level.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/apitest_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/andor.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/and3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/and2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/and.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/all5.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/all4.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/all3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/all2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/all.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/aggregation_getmore_batchsize.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/agg_hint.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/add_skip_stage_before_fetch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/SERVER-23626.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_text.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_sort_merge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_rooted_or.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_id_hack.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_group.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_geo_near_dedup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_geo_near.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_fetch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_and_sorted.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield_and_hashed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/yield.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/view_catalog_cycle_with_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/view_catalog_cycle_lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/view_catalog.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/upsert_where.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_where.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_upsert_multi_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_upsert_multi.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_simple_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_simple_eval_nolock.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_simple_eval.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_simple.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_replace_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_replace.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_rename_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_ordered_bulk_inc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_multifield_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_multifield_multiupdate_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_multifield_multiupdate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_multifield.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_inc_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_inc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_check_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_array_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_array.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/update_and_bulk_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/touch_no_data_no_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/touch_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/touch_data.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/touch_base.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/snapshot_read_kill_operations.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/snapshot_read_catalog_operations.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/sharded_splitChunk_partitioned.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/sharded_moveChunk_partitioned.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/sharded_moveChunk_drop_shard_key_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/sharded_mergeChunks_partitioned.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/sharded_base_partitioned.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/server_status.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/secondary_reads_with_catalog_changes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/secondary_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_collection_droptarget.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_collection_dbname_droptarget.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_collection_dbname_chain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_collection_chain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_capped_collection_droptarget.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_capped_collection_dbname_droptarget.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_capped_collection_dbname_chain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/rename_capped_collection_chain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/remove_where.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/remove_single_document_eval_nolock.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/remove_single_document_eval.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/remove_single_document.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/remove_multiple_documents.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/remove_and_bulk_insert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/reindex_background.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/reindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/plan_cache_drop_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/multi_statement_transaction_simple_repeated_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/multi_statement_transaction_simple.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation_repeated_reads.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation_multi_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation_metrics_test.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_replace_remove.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_replace_nonexistent.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_replace.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_reduce_nonatomic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_reduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_merge_nonatomic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_merge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_inline.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/map_reduce_drop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/list_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/kill_rooted_or.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/kill_multicollection_aggregation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/kill_aggregation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/invalidated_cursors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_where.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_upsert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_unordered_bulk.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_ttl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_text_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_text.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_ordered_bulk.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_multikey_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_multikey.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_long_fieldname_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_long_fieldname.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_large_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_large.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_heterogeneous_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_heterogeneous.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_eval_nolock.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_eval.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_compound.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_base_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_base_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_base.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_2dsphere.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_2d.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_1char_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/indexed_insert_1char.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/group_killop.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/group_cond.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/group.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/globally_managed_cursors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_upsert_collscan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_upsert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_update_queue_unindexed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_update_queue.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_update_grow.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_update_collscan.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_remove_queue_unindexed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_remove_queue.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_remove.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_mixed_queue_unindexed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/findAndModify_inc.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain_update.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain_remove.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain_group.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain_find.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain_distinct.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain_count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain_aggregate.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/explain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/drop_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/drop_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/distinct_projection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/distinct_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/distinct.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/database_versioning.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/create_index_background_unique_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/create_index_background_unique.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/create_index_background.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/create_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/create_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/create_capped_collection_maxdocs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/create_capped_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/count_limit_skip.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/count_indexed.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/convert_to_capped_collection_index.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/convert_to_capped_collection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/compact_simultaneous_padding_bytes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/compact.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/collmod_separate_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/collmod.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/auth_drop_user.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/auth_drop_role.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/auth_create_user.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/auth_create_role.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/agg_sort_external.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/agg_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/agg_out.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/agg_match.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/agg_group_external.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/agg_graph_lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads/agg_base.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_modifiers/make_capped.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_modifiers/indexed_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_modifiers/drop_all_indexes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_helpers/server_types.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_helpers/indexed_noindex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_helpers/drop_utils.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_helpers/chunks.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_utils/setup_teardown_functions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_utils/name_utils.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_selftests.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/worker_thread.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/thread_mgr.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/shard_fixture.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/runner.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/resmoke_runner.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/parse_config.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/fsm.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/extend_workload.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/composer.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs/assert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_example_inheritance.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_example.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/whole_db_resumability.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/whole_db_metadata_notifications.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/whole_db.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/whole_cluster_resumability.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/whole_cluster_metadata_notifications.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/whole_cluster.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/whitelist.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/start_at_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/shell_helper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/required_as_first_stage.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/report_latest_observed_oplog_timestamp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/only_wake_getmore_for_relevant_changes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/metadata_notifications.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/lookup_post_image.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/include_cluster_time.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/does_not_implicitly_create_database.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/collation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/change_stream.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/ban_from_views.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/ban_from_lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/apply_ops_resumability.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams/apply_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/views_authz.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/usersInfo.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_special_chars.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_management_commands_standalone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_management_commands_sharded_wc_majority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_management_commands_sharded_wc_1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_management_commands_mechanisms.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_management_commands_lib.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_management_commands_edge_cases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_defined_roles_on_secondaries.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/user_defined_roles.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/upgrade_noauth_to_keyfile_with_sharding.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/upgrade_noauth_to_keyfile.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/transactions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/system_user_privileges.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/system_user_exception.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/system_roles_collMod.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/show_log_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/server-4892.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/secondary_invalidation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/scram-credentials-invalid.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/sasl_mechanism_discovery.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/role_management_commands_standalone.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/role_management_commands_sharded_wc_majority.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/role_management_commands_sharded_wc_1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/role_management_commands_lib.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/role_management_commands_edge_cases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/resource_pattern_matching.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/repl_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/repl.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/renameSystemCollections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/rename.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/refresh_logical_session_cache_with_long_usernames.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/readIndex.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/pseudo_commands.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/profile_access.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/profile.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/pre_auth_commands_with_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/mr_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/mongos_cache_invalidation.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/mergeAuthCollsCommand.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/logout_reconnect.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/log_userid_off.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/localhostAuthBypass.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/listcommands_preauth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/list_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/list_local_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/list_databases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/list_collections_own_collections.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/list_all_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/list_all_local_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/lib/commands_lib.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/killop_own_ops.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/kill_sessions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/kill_cursors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/js_scope_leak.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/iteration_count_defaults.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/iteration_count_control.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/indexSystemUsers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/getMore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/explain_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/disable_localhost_bypass.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/db_multiple_login.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/copyauth_between_shards.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/copyauth2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/copyauth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/commands_user_defined_roles.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/commands_builtin_roles.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/cluster_ip_whitelist.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/clac_system_colls.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/builtin_roles_system_colls.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/basic_role_auth.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/authz_modifications_access_control.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/authentication_restrictions_role.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/authentication_restrictions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/auth_options.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/auth_mechanism_discovery.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/auth_helpers.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/auth3.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/auth2.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/auth1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/arbiter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/access_control_with_unreachable_configs.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/variables/remove_system_variable.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/variables/layered_variables.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/use_query_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/use_query_projection.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/use_query_project_and_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/unwind.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/testshard1.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/testall.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/testSlave.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/sort/explain_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/sort/collation_sort_japanese.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/sort/collation_sort.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/replaceRoot/address.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/redact/collation_redact.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/project/remove_redundant_projects.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/out/required_last_position.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/match/expr_match.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/match/collation_match.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/lookup/lookup_sort_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/lookup/lookup_non_correlated.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/lookup/lookup_absorb_match.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/lookup/lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/lookup/collation_lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/group/text_score_grouping.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/group/numeric_grouping.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/group/collation_group.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/socialite.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/sharded.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/nested_objects.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/filter.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/collation_graphlookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/basic.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup/airports.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/geonear/collation_geonear.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/facet/use_cases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/facet/inner_lookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/facet/inner_graphlookup.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/collStats/shard_host_info.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/collStats/count.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/bucketauto/collation_bucketauto.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/bucket/collation_bucket.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/addFields/weather.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/addFields/use_cases.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sharded_agg_cleanup_on_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/shard_targeting.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/mongos_slaveok.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/mongos_merge.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/match_swapping_renamed_fields.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/extras/utils.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/extras/testutils.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/extras/mrabench.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/extras/limitskip.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/extras/debug.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/extras/debug.html + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/trim.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/switch_errors.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/switch.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/split.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/size.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/reduce.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/object_ids_for_date_expressions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/objectToArray.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/merge_objects.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/indexof_codepoints.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/indexof_bytes.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/indexof_array.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/in.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/expression_mod.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_to_string_on_null.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_to_string.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_to_parts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_from_string_on_null.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_from_string_on_error.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_from_string.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_from_parts.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/date_expressions_with_timezones.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/convert.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/collation_expressions.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions/arrayToObject.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/explain_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/explain.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/data/articles.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/upperlower.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/substr.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/strcasecmp.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/sort_arrays.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server9841.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server9840.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server9625.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server9444.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server9289.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server8581.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server8568.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server8164.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server8141.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server7900.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server7781.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server7768.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server7695_isodates.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6861.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6779.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6570.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6556.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6531.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6530.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6468.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6335.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6290.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6275.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6269.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6240.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6239.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6238.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6232.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6198.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6195.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6194.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6192_server6193.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6190.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6189.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6186.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6185.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6184.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6181.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6179.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6177.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6147.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6131.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6127.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6125.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6121.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6120.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6074.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server6045.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server5973.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server5932.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server5782.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server533.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server5044.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server5012.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server4738.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server4656.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server4638.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server4589.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server4588.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server3832.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server3253.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server26462.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server25590.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server22580.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server22093.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server21632.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server20169.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server20168.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server20163.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server19548.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server18427.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server18222.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server18198.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server17943.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server17224.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server15810.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server14969.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server14872.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server14691.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server14670.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server14421.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server13715.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server12015.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server11675.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server11118.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server10530.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/server10176.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/reverseArray.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/match_swap_limit.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/match.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/lookup_unwind_killcursor.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/lookup_unwind_getmore.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/ifnull.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/groupMissing.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/firstlast.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/explain_options_helper.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/cursor_timeout.js + for file in `find /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests -type f` + chmod a-x /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs/cond.js + install -p -D -m 444 /builddir/build/SOURCES/README.txt /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/ + [[ /usr/bin/python3 =~ - ]] ++ /usr/bin/python3 -c 'import sys; sys.stdout.write('\''{0.major}{0.minor}'\''.format(sys.version_info))' + python_version=310 + '[' 310 -ge 39 ']' + py39_byte_compile /usr/bin/python3 /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/ + python_binary='env PYTHONHASHSEED=0 /usr/bin/python3' + bytecode_compilation_path=/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/ + env PYTHONHASHSEED=0 /usr/bin/python3 -s -B -m compileall -o 0 -o 1 -s /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386 -p / /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/ Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/__init__.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ciconfig'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ciconfig/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/ciconfig/tags.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokeconfig'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokeconfig/__init__.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokeconfig/loggers'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokeconfig/loggers/__init__.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokeconfig/suites'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokeconfig/suites/__init__.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/config.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/core'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/core/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/core/network.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/core/pipe.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/core/process.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/core/programs.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/errors.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/logging'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/logging/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/logging/buildlogger.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/logging/flush.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/logging/formatters.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/logging/handlers.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/logging/loggers.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/parser.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/reportfile.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/selector.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/sighandler.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/suitesconfig.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/executor.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures/interface.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures/replicaset.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures/replicaset_utils.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures/shardedcluster.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures/standalone.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/fixtures/yesfixture.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hook_test_archival.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/cleanup.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/cleanup_concurrency_workloads.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/collect_embedded_resources.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/combine_benchmark_results.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/combine_benchrun_embedded_results.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/dbhash.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/dbhash_background.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/initialsync.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/interface.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/jsfile.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/oplog.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/periodic_kill_secondaries.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/stepdown.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/hooks/validate.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/job.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/report.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/suite.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/summary.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/benchmark_test.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/benchrun_embedded_test.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/cpp_integration_test.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/cpp_unittest.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/dbtest.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/fsm_workload_test.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/interface.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/json_schema_test.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/jsrunnerfile.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/jstest.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/mongos_test.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/multi_stmt_txn_test.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/pytest.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/testing/testcases/sleeptest.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/__init__.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/archival.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/autoloader.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/globstar.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/jscomment.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/queue.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/registry.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/buildscripts/resmokelib/utils/scheduler.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/bugs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/data'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/expressions'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/extras'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/addFields'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/bucket'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/bucketauto'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/collStats'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/facet'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/geonear'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/graphLookup'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/group'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/lookup'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/match'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/out'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/project'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/redact'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/replaceRoot'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/sources/sort'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/aggregation/variables'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/auth/lib'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/change_streams'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_utils'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_helpers'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workload_modifiers'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/concurrency/fsm_workloads'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/json_schema'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/txns/libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core/views'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/core_standalone'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/decimal'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/disk/libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/dur/data'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/fail_point'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs/mock_http_common.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs/mock_http_control.py'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/free_mon/libs/mock_http_server.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/gle/core'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/hooks'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/httpinterface'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/command_line'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/bad_timezone_info'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/config_files/good_timezone_info'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/jstestfuzz'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/override_methods'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/libs/txns'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/mmap_v1'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/multiVersion/libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthrough/libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/noPassthroughWithMongod'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/parallel'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/perf'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/readonly/lib'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/replsets/libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/serial_run'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sharding'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/slow1'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/ssl/libs'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/sslSpecial'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/data'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/jstests/tool/data/dumprestore6'... Compiling '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/resmoke.py'... Listing '/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/mongodb-test/var'... + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 4.0.3-4.fc35 --unique-debug-suffix -4.0.3-4.fc35.i386 --unique-debug-src-base mongodb-4.0.3-4.fc35.i386 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/mongo-r4.0.3 extracting debug info from /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongo extracting debug info from /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongobridge extracting debug info from /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongod extracting debug info from /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/bin/mongos dwz: ./usr/bin/mongod-4.0.3-4.fc35.i386.debug: Too many DIEs, not optimizing dwz: Too few files for multifile optimization original debug info size: 1786048kB, size after compression: 1577152kB /usr/bin/sepdebugcrcfix: Updated 3 CRC32s, 1 CRC32s did match. cpio: parse_date.re: Cannot stat: No such file or directory 161116 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/vector4.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/vector3.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/vector3-inl.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/vector2.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/vector2-inl.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/matrix3x3.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/matrix3x3-inl.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/mathutil.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/mathutil.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/mathlimits.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/math/mathlimits.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/endian/endian.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/coding/varint.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/coding/varint.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/coding/coder.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/util/coding/coder.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/strings/strutil.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/strings/strutil.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/strings/stringprintf.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/strings/stringprintf.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/strings/split.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/strings/split.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/template_util.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/strtoint.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/strtoint.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/stringprintf.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/logging.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/logging.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/integral_types.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/int128.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/s2/base/int128.cc is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_trans.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_sqrt_macros.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_internal.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_div_macros.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/f_format.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_pow_x.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_log_x.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_int_x.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_globals.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exp_x.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_error_codes.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_cons_x.h is executable but has no shebang, removing executable bit *** WARNING: ./usr/src/debug/mongodb-4.0.3-4.fc35.i386/src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_bid_x.h is executable but has no shebang, removing executable bit mangling shebang in /usr/share/mongodb-test/resmoke.py from /usr/bin/env python3 to #!/usr/bin/python3 + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.adcXDr + umask 022 + cd /builddir/build/BUILD + cd mongo-r4.0.3 + export LANG=C.UTF-8 + LANG=C.UTF-8 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: mongodb-4.0.3-4.fc35.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.LRnSUo + umask 022 + cd /builddir/build/BUILD + cd mongo-r4.0.3 + DOCDIR=/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/doc/mongodb + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/doc/mongodb + cp -pr README /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/doc/mongodb + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.8fIsMb + umask 022 + cd /builddir/build/BUILD + cd mongo-r4.0.3 + LICENSEDIR=/builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/licenses/mongodb + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/licenses/mongodb + cp -pr GNU-AGPL-3.0.txt /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/licenses/mongodb + cp -pr APACHE-2.0.txt /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386/usr/share/licenses/mongodb + RPM_EC=0 ++ jobs -p + exit 0 Provides: mongodb = 4.0.3-4.fc35 mongodb(x86-32) = 4.0.3-4.fc35 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libboost_filesystem.so.1.76.0 libboost_iostreams.so.1.76.0 libboost_program_options.so.1.76.0 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.17) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.32) libc.so.6(GLIBC_2.33) libc.so.6(GLIBC_2.34) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.6) libc.so.6(GLIBC_2.7) libc.so.6(GLIBC_2.8) libc.so.6(GLIBC_2.9) libcrypto.so.1.1 libcrypto.so.1.1(OPENSSL_1_1_0) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3.1) libgcc_s.so.1(GCC_3.4) libgcc_s.so.1(GCC_7.0.0) libgcc_s.so.1(GLIBC_2.0) libm.so.6 libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.1) libm.so.6(GLIBC_2.2) libm.so.6(GLIBC_2.29) libpcrecpp.so.0 libresolv.so.2 libresolv.so.2(GLIBC_2.9) libsnappy.so.1 libssl.so.1.1 libssl.so.1.1(OPENSSL_1_1_0) libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(CXXABI_1.3.13) libstdc++.so.6(CXXABI_1.3.3) libstdc++.so.6(CXXABI_1.3.5) libstdc++.so.6(CXXABI_1.3.7) libstdc++.so.6(CXXABI_1.3.8) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.11) libstdc++.so.6(GLIBCXX_3.4.14) libstdc++.so.6(GLIBCXX_3.4.15) libstdc++.so.6(GLIBCXX_3.4.18) libstdc++.so.6(GLIBCXX_3.4.19) libstdc++.so.6(GLIBCXX_3.4.20) libstdc++.so.6(GLIBCXX_3.4.21) libstdc++.so.6(GLIBCXX_3.4.22) libstdc++.so.6(GLIBCXX_3.4.26) libstdc++.so.6(GLIBCXX_3.4.29) libstdc++.so.6(GLIBCXX_3.4.9) libtcmalloc.so.4 libyaml-cpp.so.0.6 libz.so.1 libz.so.1(ZLIB_1.2.0) rtld(GNU_HASH) Processing files: mongodb-server-4.0.3-4.fc35.i686 Provides: bundled(IntelRDFPMathLib) = 20U1 bundled(asio) = 1.11.0 bundled(icu) = 57.1 bundled(mozjs45) = 45.8.0 bundled(timelib) = 2017.05beta10 bundled(wiredtiger) = 4.0.3 config(mongodb-server) = 4.0.3-4.fc35 mongodb-server = 4.0.3-4.fc35 mongodb-server(x86-32) = 4.0.3-4.fc35 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh shadow-utils Requires(post): /bin/sh systemd-units Requires(preun): /bin/sh systemd-units Requires(postun): /bin/sh systemd-units Requires: libboost_filesystem.so.1.76.0 libboost_program_options.so.1.76.0 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.17) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.32) libc.so.6(GLIBC_2.33) libc.so.6(GLIBC_2.34) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.6) libc.so.6(GLIBC_2.7) libc.so.6(GLIBC_2.8) libc.so.6(GLIBC_2.9) libcrypto.so.1.1 libcrypto.so.1.1(OPENSSL_1_1_0) libcurl.so.4 libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3.1) libgcc_s.so.1(GCC_3.4) libgcc_s.so.1(GCC_7.0.0) libgcc_s.so.1(GLIBC_2.0) libm.so.6 libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.1) libm.so.6(GLIBC_2.2) libm.so.6(GLIBC_2.29) libpcrecpp.so.0 libresolv.so.2 libresolv.so.2(GLIBC_2.9) libsnappy.so.1 libssl.so.1.1 libssl.so.1.1(OPENSSL_1_1_0) libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(CXXABI_1.3.13) libstdc++.so.6(CXXABI_1.3.3) libstdc++.so.6(CXXABI_1.3.5) libstdc++.so.6(CXXABI_1.3.7) libstdc++.so.6(CXXABI_1.3.8) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.11) libstdc++.so.6(GLIBCXX_3.4.14) libstdc++.so.6(GLIBCXX_3.4.15) libstdc++.so.6(GLIBCXX_3.4.18) libstdc++.so.6(GLIBCXX_3.4.19) libstdc++.so.6(GLIBCXX_3.4.20) libstdc++.so.6(GLIBCXX_3.4.21) libstdc++.so.6(GLIBCXX_3.4.22) libstdc++.so.6(GLIBCXX_3.4.26) libstdc++.so.6(GLIBCXX_3.4.29) libstdc++.so.6(GLIBCXX_3.4.9) libstemmer.so.0 libtcmalloc.so.4 libyaml-cpp.so.0.6 libz.so.1 libz.so.1(ZLIB_1.2.0) rtld(GNU_HASH) Processing files: mongodb-test-4.0.3-4.fc35.i686 warning: File listed twice: /usr/share/mongodb-test warning: File listed twice: /usr/share/mongodb-test/var Provides: mongodb-test = 4.0.3-4.fc35 mongodb-test(x86-32) = 4.0.3-4.fc35 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 Processing files: mongodb-debugsource-4.0.3-4.fc35.i686 Provides: mongodb-debugsource = 4.0.3-4.fc35 mongodb-debugsource(x86-32) = 4.0.3-4.fc35 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: mongodb-debuginfo-4.0.3-4.fc35.i686 Provides: debuginfo(build-id) = c2d18cde4007d87076a7833860485d51359877bd debuginfo(build-id) = fd7ec4f93773cf5c4b07ca8a6a35c8b346732982 mongodb-debuginfo = 4.0.3-4.fc35 mongodb-debuginfo(x86-32) = 4.0.3-4.fc35 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: mongodb-debugsource(x86-32) = 4.0.3-4.fc35 Processing files: mongodb-server-debuginfo-4.0.3-4.fc35.i686 Provides: debuginfo(build-id) = 0ecea2d88a3d7886a9168343e0508c9aaa606ad0 debuginfo(build-id) = 129d5dbda2524deea1add23a8baac22ad09a6ce4 mongodb-server-debuginfo = 4.0.3-4.fc35 mongodb-server-debuginfo(x86-32) = 4.0.3-4.fc35 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: mongodb-debugsource(x86-32) = 4.0.3-4.fc35 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386 Wrote: /builddir/build/RPMS/mongodb-debuginfo-4.0.3-4.fc35.i686.rpm Wrote: /builddir/build/RPMS/mongodb-debugsource-4.0.3-4.fc35.i686.rpm Wrote: /builddir/build/RPMS/mongodb-server-4.0.3-4.fc35.i686.rpm Wrote: /builddir/build/RPMS/mongodb-4.0.3-4.fc35.i686.rpm Wrote: /builddir/build/RPMS/mongodb-test-4.0.3-4.fc35.i686.rpm Wrote: /builddir/build/RPMS/mongodb-server-debuginfo-4.0.3-4.fc35.i686.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.F2TOau + umask 022 + cd /builddir/build/BUILD + cd mongo-r4.0.3 + /usr/bin/rm -rf /builddir/build/BUILDROOT/mongodb-4.0.3-4.fc35.i386 + RPM_EC=0 ++ jobs -p + exit 0 Finish: rpmbuild mongodb-4.0.3-4.fc35.src.rpm Finish: build phase for mongodb-4.0.3-4.fc35.src.rpm INFO: chroot_scan: 3 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-35-i686-1635456836.472326/root/var/log/dnf.rpm.log /var/lib/mock/fedora-35-i686-1635456836.472326/root/var/log/dnf.librepo.log /var/lib/mock/fedora-35-i686-1635456836.472326/root/var/log/dnf.log INFO: Done(/var/lib/copr-rpmbuild/results/mongodb-4.0.3-4.fc35.src.rpm) Config(child) 99 minutes 35 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot Finish: run Running RPMResults tool